Skip to content

Commit

Permalink
Merge pull request #10236 from Icinga/log-error-context-only-once-214
Browse files Browse the repository at this point in the history
ApiListener: Log error context only once
  • Loading branch information
yhabteab authored Nov 14, 2024
2 parents d5cd5af + d5051c7 commit 122c20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/remote/apilistener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ void ApiListener::ReplayLog(const JsonRpcConnection::Ptr& client)
count++;
} catch (const std::exception& ex) {
Log(LogWarning, "ApiListener")
<< "Error while replaying log for endpoint '" << endpoint->GetName() << "': " << DiagnosticInformation(ex, false);
<< "Error while replaying log for endpoint '" << endpoint->GetName() << "': " << ex.what();

Log(LogDebug, "ApiListener")
<< "Error while replaying log for endpoint '" << endpoint->GetName() << "': " << DiagnosticInformation(ex);
Expand Down

0 comments on commit 122c20a

Please sign in to comment.