From 07660d37a51489856be285c4e84fa04c38167f39 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 27 May 2018 15:48:42 +0300 Subject: [PATCH] imap: Log unhibernation debug message only with mail_debug=yes --- src/imap/imap-state.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } -- 2.47.3