dovecot-2.2: director: Always log a message when director handsh...

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 12 00:01:03 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/91c525000811
changeset: 18063:91c525000811
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 12 01:59:48 2014 +0200
description:
director: Always log a message when director handshake finishes.

diffstat:

 src/director/director-connection.c |  20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diffs (30 lines):

diff -r ade6dcace5cd -r 91c525000811 src/director/director-connection.c
--- a/src/director/director-connection.c	Wed Nov 12 01:51:29 2014 +0200
+++ b/src/director/director-connection.c	Wed Nov 12 01:59:48 2014 +0200
@@ -1036,17 +1036,15 @@
 		user_directory_sort(conn->dir->users);
 	}
 
-	if (handshake_secs >= DIRECTOR_HANDSHAKE_WARN_SECS || director_debug) {
-		str = t_str_new(128);
-		str_printfa(str, "director(%s): Handshake took %u secs, "
-			    "bytes in=%"PRIuUOFF_T" out=%"PRIuUOFF_T,
-			    conn->name, handshake_secs, conn->input->v_offset,
-			    conn->output->offset);
-		if (handshake_secs >= DIRECTOR_HANDSHAKE_WARN_SECS)
-			i_warning("%s", str_c(str));
-		else
-			i_debug("%s", str_c(str));
-	}
+	str = t_str_new(128);
+	str_printfa(str, "director(%s): Handshake finished in %u secs "
+		    "(bytes in=%"PRIuUOFF_T" out=%"PRIuUOFF_T")",
+		    conn->name, handshake_secs, conn->input->v_offset,
+		    conn->output->offset);
+	if (handshake_secs >= DIRECTOR_HANDSHAKE_WARN_SECS)
+		i_warning("%s", str_c(str));
+	else
+		i_info("%s", str_c(str));
 
 	/* the host is up now, make sure we can connect to it immediately
 	   if needed */


More information about the dovecot-cvs mailing list