summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/src/smtp_in.c19
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;