Skip to content

Commit

Permalink
GelfWriter: show error message of exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbrost authored and Al2Klimov committed Aug 17, 2021
1 parent 8da90d4 commit c2abb0c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/perfdata/gelfwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,8 @@ void GelfWriter::AssertOnWorkQueue()

void GelfWriter::ExceptionHandler(boost::exception_ptr exp)
{
Log(LogCritical, "GelfWriter", "Exception during Graylog Gelf operation: Verify that your backend is operational!");

Log(LogDebug, "GelfWriter")
<< "Exception during Graylog Gelf operation: " << DiagnosticInformation(std::move(exp));
Log(LogCritical, "GelfWriter") << "Exception during Graylog Gelf operation: " << DiagnosticInformation(exp, false);
Log(LogDebug, "GelfWriter") << "Exception during Graylog Gelf operation: " << DiagnosticInformation(exp, true);

DisconnectInternal();
}
Expand Down

0 comments on commit c2abb0c

Please sign in to comment.