show traceback when smtp connection failed
This commit is contained in:
parent
350cf406c2
commit
ce950259b4
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user