More loggging...

This is logging that wasn't getting caught before.
This commit is contained in:
Jigme Datse Yli-Rasku 2024-05-30 01:23:33 -07:00
parent c3f96425d9
commit 91680e2e17
2 changed files with 7 additions and 1 deletions

View File

@ -44,4 +44,7 @@ This is our current version trying to communicate between courier and mailman3.
* It's not finding it.
* Oh man `To` vs `'To'`
* Progress... But getting, "line too long" this seems like I need the
replace that I had before.
replace that I had before.
* OK, that's progress... But not sure what, failing to get logs that are
useful.
*

View File

@ -64,6 +64,9 @@ try:
content
)
except smtplib.SMTPResponseException as e:
logger.error('lmtp error on send')
logger.exception('Got exception Traceback:')
logger.error('lmtp failed errorno: %s, message: %s', e.errno, e.strerror)
if 400 <= e.smtp_code < 500:
exit(111)
# otherwise, it's either a 5xx aka permanent error or something else