show traceback when smtp connection failed

This commit is contained in:
Martin Zimmermann 2013-11-25 17:02:04 +01:00
parent 350cf406c2
commit ce950259b4

View File

@ -41,7 +41,7 @@ class SMTP(object):
with self:
logger.info("connected to SMTP server")
except (socket.error, smtplib.SMTPException):
logger.warn("unable to connect to SMTP server")
logger.exception("unable to connect to SMTP server")
if uwsgi:
def spooler(args):