From: Peter Eckel Date: Mon, 11 Feb 2019 12:54:17 +0000 (+0100) Subject: Avoid duplicating non-zero count message replay messages in the debug log X-Git-Tag: v2.11.0-rc1~232^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d59863725ea843312fd89a9fc9e434187a56650;p=icinga2 Avoid duplicating non-zero count message replay messages in the debug log --- diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 9596b76ac..118882e35 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -1249,9 +1249,10 @@ void ApiListener::ReplayLog(const JsonRpcConnection::Ptr& client) Log(LogInformation, "ApiListener") << "Replayed " << count << " messages."; } - - Log(LogNotice, "ApiListener") - << "Replayed " << count << " messages."; + else { + Log(LogNotice, "ApiListener") + << "Replayed " << count << " messages."; + } if (last_sync) { {