Logging simplified
This isn't catching the exception, just logging before exiting.
This commit is contained in:
parent
7ec334a716
commit
66c37c2af6
|
@ -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?
|
|
@ -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)
|
Loading…
Reference in New Issue