From: Aki Tuomi Date: Tue, 26 Jun 2018 10:18:00 +0000 (+0300) Subject: lib-storage: Fix MAIL_STORAGE_SERVICE_FLAG_DEBUG work again X-Git-Tag: 2.3.3.rc1~168 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d87ce31b65c374d410a9cfe5f1611eab293ca921;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Fix MAIL_STORAGE_SERVICE_FLAG_DEBUG work again --- diff --git a/src/lib-storage/mail-storage-service.c b/src/lib-storage/mail-storage-service.c index d05351b8ef..17e33aa3fc 100644 --- a/src/lib-storage/mail-storage-service.c +++ b/src/lib-storage/mail-storage-service.c @@ -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 },