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

ApiListener: Log error context only once
This commit is contained in:
Yonas Habteab 2024-11-14 12:57:03 +01:00 committed by GitHub
commit 122c20a6a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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