From 2a1a3726bf3e516bd3102a60abc4290e1b7a559a Mon Sep 17 00:00:00 2001 From: Peter Eckel Date: Mon, 11 Feb 2019 13:54:17 +0100 Subject: [PATCH] Avoid duplicating non-zero count message replay messages in the debug log (cherry picked from commit 5d59863725ea843312fd89a9fc9e434187a56650) --- lib/remote/apilistener.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 504ad77e2..fb2443d0c 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -1250,9 +1250,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) { {