dovecot-1.2: quota-fs: Improved debug logging.

dovecot at dovecot.org dovecot at dovecot.org
Mon May 18 01:35:43 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/1e9bb18eb439
changeset: 9045:1e9bb18eb439
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 18:35:30 2009 -0400
description:
quota-fs: Improved debug logging.

diffstat:

1 file changed, 6 insertions(+), 4 deletions(-)
src/plugins/quota/quota-fs.c |   10 ++++++----

diffs (27 lines):

diff -r 720560d19f5b -r 1e9bb18eb439 src/plugins/quota/quota-fs.c
--- a/src/plugins/quota/quota-fs.c	Sun May 17 18:29:35 2009 -0400
+++ b/src/plugins/quota/quota-fs.c	Sun May 17 18:35:30 2009 -0400
@@ -315,8 +315,9 @@ static int do_rquota_user(struct fs_quot
 	path++;
 
 	if (root->root.quota->set->debug) {
-		i_info("quota-fs: host=%s, path=%s, uid=%s",
-			host, path, dec2str(root->uid));
+		i_info("quota-fs: host=%s, path=%s, uid=%s, %s",
+		       host, path, dec2str(root->uid),
+		       bytes ? "bytes" : "files");
 	}
 
 	/* clnt_create() polls for a while to establish a connection */
@@ -414,8 +415,9 @@ static int do_rquota_group(struct fs_quo
 	path++;
 
 	if (root->root.quota->set->debug) {
-		i_info("quota-fs: host=%s, path=%s, gid=%s",
-			host, path, dec2str(root->gid));
+		i_info("quota-fs: host=%s, path=%s, gid=%s, %s",
+		       host, path, dec2str(root->gid),
+		       bytes ? "bytes" : "files");
 	}
 
 	/* clnt_create() polls for a while to establish a connection */


More information about the dovecot-cvs mailing list