mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 08:13:16 +08:00
add more logging
This commit is contained in:
parent
64c6ef2cbe
commit
75d6b1dab5
1 changed files with 3 additions and 1 deletions
|
@ -1306,7 +1306,8 @@ def sl_sendmail(
|
|||
except (SMTPServerDisconnected, SMTPRecipientsRefused) as e:
|
||||
if can_retry:
|
||||
LOG.w(
|
||||
"SMTPServerDisconnected or SMTPRecipientsRefused error, retry",
|
||||
"SMTPServerDisconnected or SMTPRecipientsRefused error %s, retry",
|
||||
e,
|
||||
exc_info=True,
|
||||
)
|
||||
time.sleep(3)
|
||||
|
@ -1320,6 +1321,7 @@ def sl_sendmail(
|
|||
can_retry=False,
|
||||
)
|
||||
else:
|
||||
LOG.w("sendmail fails after retry")
|
||||
raise
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue