Logging simplified

This isn't catching the exception, just logging before exiting.
This commit is contained in:
Jigme Datse Yli-Rasku 2024-05-29 23:36:07 -07:00
parent 7ec334a716
commit 66c37c2af6
2 changed files with 5 additions and 3 deletions

View File

@ -30,3 +30,4 @@ This is our current version trying to communicate between courier and mailman3.
* Logging host and port on same line.
* OK, parsing port number, and setting default.
* Logging error (I hope), when lmtp fails to be created.
* Maybe this is better?

View File

@ -65,6 +65,7 @@ try:
# 5xx error
else:
raise
except smtplib.SMTPEXception as e:
logger.error('lmtp failed errorno: %s, message: %s', e.errno, e.strerror)
except:
logger.error('lmtp error')
#logger.error('lmtp failed errorno: %s, message: %s', e.errno, e.strerror)
exit(100)