diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-08-20 13:42:16 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-08-20 13:42:16 +0100 |
commit | 2ac258501be0bcb0628548d5990de76ce7361ac8 (patch) | |
tree | d52755f08a7579dab8ba4eb0c418d52c009812ca /src | |
parent | cb6832770fe8ae9b3d2a27e5f2f622eb06873587 (diff) |
Logging: add elapsed-time element to unexpected-diconnection lines
Diffstat (limited to 'src')
-rw-r--r-- | src/src/smtp_in.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index 9721fb7d6..d6250d12d 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -5460,14 +5460,17 @@ while (done <= 0) */ if (sender_address != NULL || recipients_count > 0) - log_write(L_lost_incoming_connection, - LOG_MAIN, - "unexpected %s while reading SMTP command from %s%s", - sender_host_unknown? "EOF" : "disconnection", - host_and_ident(FALSE), smtp_read_error); - - else log_write(L_smtp_connection, LOG_MAIN, "%s lost%s", - smtp_get_connection_info(), smtp_read_error); + log_write(L_lost_incoming_connection, LOG_MAIN, + "unexpected %s while reading SMTP command from %s%s D=%s", + sender_host_unknown ? "EOF" : "disconnection", + host_and_ident(FALSE), smtp_read_error, + string_timesince(&smtp_connection_start) + ); + + else + log_write(L_smtp_connection, LOG_MAIN, "%s lost%s D=%s", + smtp_get_connection_info(), smtp_read_error, + string_timesince(&smtp_connection_start)); done = 1; break; |