# HG changeset patch # User Timo Sirainen # Date 1415750388 -7200 # Node ID 91c5250008112f53151357eff45c9c7bac045f7f # Parent ade6dcace5cdd456fe925ecb453b1191d2d6fb19 director: Always log a message when director handshake finishes. 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 */