dovecot-2.1: director: Improved debug handshake message.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Apr 20 00:32:46 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/ee169584bc44
changeset: 14442:ee169584bc44
user: Timo Sirainen <tss at iki.fi>
date: Fri Apr 20 00:32:34 2012 +0300
description:
director: Improved debug handshake message.
diffstat:
src/director/director-connection.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r ea5b949a623b -r ee169584bc44 src/director/director-connection.c
--- a/src/director/director-connection.c Fri Apr 20 00:13:55 2012 +0300
+++ b/src/director/director-connection.c Fri Apr 20 00:32:34 2012 +0300
@@ -866,8 +866,14 @@
{
struct director *dir = conn->dir;
- if (dir->debug)
- i_debug("Handshaked to %s", conn->host->name);
+ if (dir->debug) {
+ unsigned int secs = time(NULL)-conn->created;
+
+ i_debug("director(%s): Handshake took %u secs, "
+ "bytes in=%"PRIuUOFF_T" out=%"PRIuUOFF_T,
+ conn->name, secs, conn->input->v_offset,
+ conn->output->offset);
+ }
/* the host is up now, make sure we can connect to it immediately
if needed */
More information about the dovecot-cvs
mailing list