]> granicus.if.org Git - icinga2/commitdiff
Avoid duplicating non-zero count message replay messages in the debug log 6943/head
authorPeter Eckel <pe-git@hindenburgring.com>
Mon, 11 Feb 2019 12:54:17 +0000 (13:54 +0100)
committerPeter Eckel <pe-git@hindenburgring.com>
Mon, 11 Feb 2019 12:54:17 +0000 (13:54 +0100)
lib/remote/apilistener.cpp

index 9596b76ac42ec5f13aed4f9f72e27a6bbbf7ca29..118882e3556f205316e5ef6175b8aa93d385ed4c 100644 (file)
@@ -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) {
                        {