changeset 14478:ee169584bc44

director: Improved debug handshake message.
author Timo Sirainen <tss@iki.fi>
date Fri, 20 Apr 2012 00:32:34 +0300
parents ea5b949a623b
children 293ada796ae6
files src/director/director-connection.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 */