]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Use event_want_debug() rather than checking for debug flag
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 28 Oct 2022 09:58:43 +0000 (12:58 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 31 Oct 2022 16:28:37 +0000 (16:28 +0000)
src/doveadm/dsync/dsync-mailbox-tree-sync.c

index af6459ace098762cea15d3fcad854b6f5c175767..dee5a0697795b3af62dc3c095a2d9391a44b3b02 100644 (file)
@@ -853,7 +853,7 @@ static bool sync_rename_mailboxes(struct dsync_mailbox_tree_sync_ctx *ctx,
        string_t *debug = NULL;
        bool changed;
 
-       if ((ctx->sync_flags & DSYNC_MAILBOX_TREES_SYNC_FLAG_DEBUG) != 0)
+       if (event_want_debug(ctx->event))
                debug = t_str_new(128);
 
        /* the nodes are sorted by their names. */