dovecot-2.2: auth: Make it clearer in debug messages if the repl...

dovecot at dovecot.org dovecot at dovecot.org
Thu Aug 30 22:05:17 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/5590c1dc04cd
changeset: 14996:5590c1dc04cd
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 24 12:25:55 2012 +0300
description:
auth: Make it clearer in debug messages if the replies are passdb or userdb.

diffstat:

 src/auth/auth-client-connection.c |  3 ++-
 src/auth/auth-master-connection.c |  6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 6b61cc674eef -r 5590c1dc04cd src/auth/auth-client-connection.c
--- a/src/auth/auth-client-connection.c	Thu Aug 23 23:46:15 2012 +0300
+++ b/src/auth/auth-client-connection.c	Fri Aug 24 12:25:55 2012 +0300
@@ -65,7 +65,8 @@
 	}
 
 	if (conn->auth->set->debug) {
-		i_debug("client out: %s", conn->auth->set->debug_passwords ?
+		i_debug("client passdb out: %s",
+			conn->auth->set->debug_passwords ?
 			cmd : reply_line_hide_pass(cmd));
 	}
 }
diff -r 6b61cc674eef -r 5590c1dc04cd src/auth/auth-master-connection.c
--- a/src/auth/auth-master-connection.c	Thu Aug 23 23:46:15 2012 +0300
+++ b/src/auth/auth-master-connection.c	Fri Aug 24 12:25:55 2012 +0300
@@ -79,7 +79,7 @@
 	reply_str = auth_stream_reply_export(reply);
 
 	if (conn->auth->set->debug) {
-		i_debug("master out: %s",
+		i_debug("master userdb out: %s",
 			auth_master_reply_hide_passwords(conn, reply_str));
 	}
 
@@ -280,7 +280,7 @@
 	}
 
 	if (conn->auth->set->debug) {
-		i_debug("master out: %s",
+		i_debug("userdb out: %s",
 			auth_master_reply_hide_passwords(conn, str_c(str)));
 	}
 
@@ -342,7 +342,7 @@
 	}
 
 	if (conn->auth->set->debug)
-		i_debug("master out: %s", str_c(str));
+		i_debug("passdb out: %s", str_c(str));
 
 	str_append_c(str, '\n');
 	(void)o_stream_send(conn->output, str_data(str), str_len(str));


More information about the dovecot-cvs mailing list