show traceback when smtp connection failed
This commit is contained in:
parent
350cf406c2
commit
ce950259b4
@ -41,7 +41,7 @@ class SMTP(object):
|
|||||||
with self:
|
with self:
|
||||||
logger.info("connected to SMTP server")
|
logger.info("connected to SMTP server")
|
||||||
except (socket.error, smtplib.SMTPException):
|
except (socket.error, smtplib.SMTPException):
|
||||||
logger.warn("unable to connect to SMTP server")
|
logger.exception("unable to connect to SMTP server")
|
||||||
|
|
||||||
if uwsgi:
|
if uwsgi:
|
||||||
def spooler(args):
|
def spooler(args):
|
||||||
|
Loading…
Reference in New Issue
Block a user