Skip to content

Commit

Permalink
dsync: Display namespace locations on init in debug mode
Browse files Browse the repository at this point in the history
This simplifies debugging as you can more easily tell
which brain is using which mail location.
  • Loading branch information
cmouse committed Jun 9, 2017
1 parent 8a5fe0c commit 7aa2660
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/doveadm/dsync/dsync-brain-mailbox-tree.c
Expand Up @@ -55,6 +55,10 @@ void dsync_brain_mailbox_trees_init(struct dsync_brain *brain)
for (ns = brain->user->namespaces; ns != NULL; ns = ns->next) {
if (!dsync_brain_want_namespace(brain, ns))
continue;
if (brain->debug)
i_debug("brain %c: Namespace %s has location %s",
brain->master_brain ? 'M' : 'S',
ns->prefix, ns->set->location);
if (dsync_mailbox_tree_fill(brain->local_mailbox_tree, ns,
brain->sync_box,
brain->sync_box_guid,
Expand Down

0 comments on commit 7aa2660

Please sign in to comment.