Skip to content

Commit

Permalink
Merge pull request #10209 from Icinga/log-error-context-only-once
Browse files Browse the repository at this point in the history
ApiListener: Log error context only once
  • Loading branch information
yhabteab authored Oct 31, 2024
2 parents 5f487af + 8574357 commit d894792
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 @@ -1554,7 +1554,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 d894792

Please sign in to comment.