Merge pull request #6943 from peteeckel/bugfix/apilistener-duplicate-log-entries-6942

Avoid duplicating non-zero count message replay messages in the debug log
This commit is contained in:
Michael Friedrich 2019-02-11 15:32:50 +01:00 committed by GitHub
commit 5180bb3a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View 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) {
{