Skip to content

Commit 8574357

Browse files
committed
ApiListener: Log error context only once
When logging at the warning level, the logger will automatically look up for registered context and append them to the log entry accordingly.
1 parent 92399a9 commit 8574357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/remote/apilistener.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ void ApiListener::ReplayLog(const JsonRpcConnection::Ptr& client)
15541554
count++;
15551555
} catch (const std::exception& ex) {
15561556
Log(LogWarning, "ApiListener")
1557-
<< "Error while replaying log for endpoint '" << endpoint->GetName() << "': " << DiagnosticInformation(ex, false);
1557+
<< "Error while replaying log for endpoint '" << endpoint->GetName() << "': " << ex.what();
15581558

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

0 commit comments

Comments
 (0)