Logging port and host on same line
Previously it wasn't listing the port (it should be null).
This commit is contained in:
parent
e0da11693a
commit
b1ada80361
|
@ -26,4 +26,5 @@ This is our current version trying to communicate between courier and mailman3.
|
|||
* Date format set:
|
||||
* Level and File set in variable
|
||||
* Format had errors with `$` used instead of `%`
|
||||
* 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.
|
|
@ -31,7 +31,7 @@ try:
|
|||
|
||||
# Setup LTMP connection
|
||||
lmtp_host = sys.argv[3] if len(sys.argv) > 3 else 'localhost'
|
||||
logger.info('lmtp_host: %s', lmtp_host)
|
||||
logger.info('lmtp_host: %s lmtp_port: %s', lmtp_host, sysv.arg[1])
|
||||
# class smtplib.LMTP(host='', port=LMTP_PORT, local_hostname=None, source_address=None)
|
||||
logger.info('lmtp_port: %s', sysv.arg[1])
|
||||
lmtp = smtplib.LMTP(lmtp_host, int(sys.argv[1]))
|
||||
|
|
Loading…
Reference in New Issue