dovecot-2.1: login proxy: Always log the username in the error m...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 8 21:04:04 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/d9b89af302e7
changeset: 13670:d9b89af302e7
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 08 21:14:32 2011 +0200
description:
login proxy: Always log the username in the error messages.

diffstat:

 src/login-common/login-proxy.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 08afc14abc21 -r d9b89af302e7 src/login-common/login-proxy.c
--- a/src/login-common/login-proxy.c	Mon Nov 07 22:54:32 2011 +0200
+++ b/src/login-common/login-proxy.c	Tue Nov 08 21:14:32 2011 +0200
@@ -199,7 +199,8 @@
 
 	err = net_geterror(proxy->server_fd);
 	if (err != 0) {
-		i_error("proxy: connect(%s, %u) failed: %s",
+		i_error("proxy(%s): connect(%s, %u) failed: %s",
+			proxy->client->virtual_user,
 			proxy->host, proxy->port, strerror(err));
 		proxy_fail_connect(proxy);
                 login_proxy_free(&proxy);
@@ -226,7 +227,8 @@
 
 static void proxy_connect_timeout(struct login_proxy *proxy)
 {
-	i_error("proxy: connect(%s, %u) timed out", proxy->host, proxy->port);
+	i_error("proxy(%s): connect(%s, %u) timed out",
+		proxy->client->virtual_user, proxy->host, proxy->port);
 	proxy_fail_connect(proxy);
 	login_proxy_free(&proxy);
 }


More information about the dovecot-cvs mailing list