Skip to content

Commit

Permalink
lib-storage: Turn on debug early if MAIL_STORAGE_SERVICE_FLAG_DEBUG set
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse committed Jun 26, 2018
1 parent c64f543 commit 6eba646
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib-storage/mail-storage-service.c
Expand Up @@ -1120,7 +1120,8 @@ mail_storage_service_first_init(struct mail_storage_service_ctx *ctx,
{
enum auth_master_flags flags = 0;

ctx->debug = mail_user_set_get_mail_debug(user_info, user_set);
ctx->debug = mail_user_set_get_mail_debug(user_info, user_set) ||
(service_flags & MAIL_STORAGE_SERVICE_FLAG_DEBUG) != 0;
if (ctx->debug)
flags |= AUTH_MASTER_FLAG_DEBUG;
if ((service_flags & MAIL_STORAGE_SERVICE_FLAG_NO_IDLE_TIMEOUT) != 0)
Expand Down

0 comments on commit 6eba646

Please sign in to comment.