Merge pull request #10209 from Icinga/log-error-context-only-once

ApiListener: Log error context only once
This commit is contained in:
Yonas Habteab 2024-10-31 13:14:42 +01:00 committed by GitHub
commit d894792c36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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);