From: Timo Sirainen Date: Fri, 28 Oct 2022 09:58:43 +0000 (+0300) Subject: dsync: Use event_want_debug() rather than checking for debug flag X-Git-Tag: 2.4.0~3468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afd3ee142881fec42f0110a4576f230de7a0ebae;p=thirdparty%2Fdovecot%2Fcore.git dsync: Use event_want_debug() rather than checking for debug flag --- diff --git a/src/doveadm/dsync/dsync-mailbox-tree-sync.c b/src/doveadm/dsync/dsync-mailbox-tree-sync.c index af6459ace0..dee5a06977 100644 --- a/src/doveadm/dsync/dsync-mailbox-tree-sync.c +++ b/src/doveadm/dsync/dsync-mailbox-tree-sync.c @@ -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. */