Mercurial > dovecot > core-2.2
changeset 18063:91c525000811
director: Always log a message when director handshake finishes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 12 Nov 2014 01:59:48 +0200 |
parents | ade6dcace5cd |
children | 389f084b3d2a |
files | src/director/director-connection.c |
diffstat | 1 files changed, 9 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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 */