Logging error on lmtp not created.

This I hope logs when lmtp fails to be created.
This commit is contained in:
Jigme Datse Yli-Rasku 2024-05-29 23:31:22 -07:00
parent de3f954950
commit 7ec334a716
2 changed files with 4 additions and 2 deletions

View File

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

View File

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