]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Log namespace location with mail_debug=yes
authorTimo Sirainen <tss@iki.fi>
Fri, 20 Aug 2010 15:14:19 +0000 (16:14 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 20 Aug 2010 15:14:19 +0000 (16:14 +0100)
src/lib-storage/mail-namespace.c

index 33ac424cdcf6a03f748844c5318d8fca9cf45bca..2a0005551dbffcfb3096a11277baf6d2a2453c42 100644 (file)
@@ -105,20 +105,21 @@ namespace_add(struct mail_user *user,
        if (ns_set->subscriptions)
                ns->flags |= NAMESPACE_FLAG_SUBSCRIPTIONS;
 
+       if (*ns_set->location == '\0')
+               ns_set->location = mail_set->mail_location;
+
        if (mail_set->mail_debug) {
                i_debug("Namespace %s: type=%s, prefix=%s, sep=%s, "
-                       "inbox=%s, hidden=%s, list=%s, subscriptions=%s",
+                       "inbox=%s, hidden=%s, list=%s, subscriptions=%s "
+                       "location=%s",
                        ns_set->name, ns_set->type, ns_set->prefix,
                        ns_set->separator == NULL ? "" : ns_set->separator,
                        ns_set->inbox ? "yes" : "no",
                        ns_set->hidden ? "yes" : "no",
                        ns_set->list,
-                       ns_set->subscriptions ? "yes" : "no");
+                       ns_set->subscriptions ? "yes" : "no", ns_set->location);
        }
 
-       if (*ns_set->location == '\0')
-               ns_set->location = mail_set->mail_location;
-
        ns->set = ns_set;
        ns->unexpanded_set = unexpanded_ns_set;
        ns->mail_set = mail_set;