From: Timo Sirainen Date: Sun, 27 May 2018 12:48:42 +0000 (+0300) Subject: imap: Log unhibernation debug message only with mail_debug=yes X-Git-Tag: 2.3.2.rc1~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07660d37a51489856be285c4e84fa04c38167f39;p=thirdparty%2Fdovecot%2Fcore.git imap: Log unhibernation debug message only with mail_debug=yes --- diff --git a/src/imap/imap-state.c b/src/imap/imap-state.c index 83e05061b7..e2df34e586 100644 --- a/src/imap/imap-state.c +++ b/src/imap/imap-state.c @@ -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; }