summaryrefslogtreecommitdiffstats
path: root/imap/imaptoken.c
diff options
context:
space:
mode:
authorSam Varshavchik2019-09-05 21:40:19 -0400
committerSam Varshavchik2019-09-05 21:40:19 -0400
commit8a4656aa96994919045ee63fe479b55fa12ca320 (patch)
tree064e487e84cdf4fa8961d77c612ad8a7f96018c2 /imap/imaptoken.c
parentcf4938d245043ae81cce060e39c71f0da5ef5eb7 (diff)
downloadcourier-libs-8a4656aa96994919045ee63fe479b55fa12ca320.tar.bz2
Log remote port numbers.
Diffstat (limited to 'imap/imaptoken.c')
-rw-r--r--imap/imaptoken.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/imap/imaptoken.c b/imap/imaptoken.c
index a11310a..153450a 100644
--- a/imap/imaptoken.c
+++ b/imap/imaptoken.c
@@ -60,13 +60,16 @@ void bye_msg(const char *type)
if (a && *a)
fprintf(stderr, "%s, user=%s, "
- "ip=[%s], headers=%lu, body=%lu, rcvd=%lu, sent=%lu, time=%s%s\n",
+ "ip=[%s], port=[%s], headers=%lu, body=%lu, rcvd=%lu, sent=%lu, time=%s%s\n",
type,
- a, getenv("TCPREMOTEIP"), header_count, body_count, bytes_received_count, bytes_sent_count,
+ a, getenv("TCPREMOTEIP"),
+ getenv("TCPREMOTEPORT"),
+ header_count, body_count, bytes_received_count, bytes_sent_count,
buf, tls);
else
- fprintf(stderr, "DEBUG: Disconnected, ip=[%s], time=%s%s\n",
+ fprintf(stderr, "DEBUG: Disconnected, ip=[%s], port=[%s], time=%s%s\n",
getenv("TCPREMOTEIP"),
+ getenv("TCPREMOTEPORT"),
buf, tls);
}