Skip to content

Commit

Permalink
imap: Log unhibernation debug message only with mail_debug=yes
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed May 27, 2018
1 parent 84ed07b commit 646a917
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/imap/imap-state.c
Expand Up @@ -686,9 +686,11 @@ import_state_mailbox_open(struct client *client,
status.highest_modseq));
client->sync_last_full_modseq = status.highest_modseq;
}
i_debug("Unhibernation sync: %u expunges, %u new messages, %u flag changes, %"PRIu64" modseq changes",
expunge_count, new_mails_count, flag_change_count,
status.highest_modseq - state->highest_modseq);
if (client->user->mail_debug) {
i_debug("Unhibernation sync: %u expunges, %u new messages, %u flag changes, %"PRIu64" modseq changes",
expunge_count, new_mails_count, flag_change_count,
status.highest_modseq - state->highest_modseq);
}
return 0;
}

Expand Down

0 comments on commit 646a917

Please sign in to comment.