mirror of https://github.com/Icinga/icinga2.git
Merge pull request #10209 from Icinga/log-error-context-only-once
ApiListener: Log error context only once
This commit is contained in:
commit
d894792c36
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue