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

@ -29,4 +29,5 @@ This is our current version trying to communicate between courier and mailman3.
* Clean up logging to not log what was logged for logging diagnostics. * Clean up logging to not log what was logged for logging diagnostics.
* Logging host and port on same line. * Logging host and port on same line.
* OK, parsing port number, and setting default. * OK, parsing port number, and setting default.
* Logging error (I hope), when lmtp fails to be created. * Logging error (I hope), when lmtp fails to be created.
* Maybe this is better?

View File

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