dovecot-2.1: login proxy: Added extra logging for bug detection.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jan 11 12:07:52 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/d72db2acf75b
changeset: 13931:d72db2acf75b
user: Timo Sirainen <tss at iki.fi>
date: Wed Jan 11 12:07:44 2012 +0200
description:
login proxy: Added extra logging for bug detection.
diffstat:
src/login-common/client-common-auth.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r e0ff21d73630 -r d72db2acf75b src/login-common/client-common-auth.c
--- a/src/login-common/client-common-auth.c Wed Jan 11 10:31:25 2012 +0200
+++ b/src/login-common/client-common-auth.c Wed Jan 11 12:07:44 2012 +0200
@@ -226,14 +226,17 @@
client_proxy_failed(client, TRUE);
return;
case -1:
+ line = i_stream_next_line(input);
duration = ioloop_time - client->created;
client_log_err(client, t_strdup_printf(
"proxy: Remote %s:%u disconnected: %s "
- "(state=%u, duration=%us)",
+ "(state=%u, duration=%us)%s",
login_proxy_get_host(client->login_proxy),
login_proxy_get_port(client->login_proxy),
get_disconnect_reason(input),
- client->proxy_state, duration));
+ client->proxy_state, duration,
+ line == NULL ? "" : t_strdup_printf(
+ " - BUG: line not read: %s", line)));
client_proxy_failed(client, TRUE);
return;
}
More information about the dovecot-cvs
mailing list