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