]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota-fs: Improved debug logging.
authorTimo Sirainen <tss@iki.fi>
Sun, 17 May 2009 22:35:30 +0000 (18:35 -0400)
committerTimo Sirainen <tss@iki.fi>
Sun, 17 May 2009 22:35:30 +0000 (18:35 -0400)
--HG--
branch : HEAD

src/plugins/quota/quota-fs.c

index f4b0989e5365b4c0f66a406ac8a9e3a0bfd9b872..63f3b62ed2fb439e86b38575654637f3893f968e 100644 (file)
@@ -315,8 +315,9 @@ static int do_rquota_user(struct fs_quota_root *root, bool bytes,
        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_quota_root *root, bool bytes,
        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 */