]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fix MAIL_STORAGE_SERVICE_FLAG_DEBUG work again
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 26 Jun 2018 10:18:00 +0000 (13:18 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 7 Aug 2018 11:10:07 +0000 (14:10 +0300)
src/lib-storage/mail-storage-service.c

index d05351b8efc655eb5578ceb57e304a720a577265..17e33aa3fc06fda77dcc4344f89b0bdfbd929398 100644 (file)
@@ -1320,7 +1320,8 @@ mail_storage_service_lookup_real(struct mail_storage_service_ctx *ctx,
           This event won't be a parent to any other events - mail_user.event
           will be used for that. */
        user->event = event_create(input->parent_event);
-       if (user->service_ctx->debug)
+       if (user->service_ctx->debug ||
+           (flags & MAIL_STORAGE_SERVICE_FLAG_DEBUG) != 0)
                event_set_forced_debug(user->event, TRUE);
        event_add_fields(user->event, (const struct event_add_field []){
                { .key = "user", .value = user->input.username },