Skip to content

Commit c2abb0c

Browse files
julianbrostAl2Klimov
authored andcommitted
GelfWriter: show error message of exceptions
1 parent 8da90d4 commit c2abb0c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/perfdata/gelfwriter.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,8 @@ void GelfWriter::AssertOnWorkQueue()
126126

127127
void GelfWriter::ExceptionHandler(boost::exception_ptr exp)
128128
{
129-
Log(LogCritical, "GelfWriter", "Exception during Graylog Gelf operation: Verify that your backend is operational!");
130-
131-
Log(LogDebug, "GelfWriter")
132-
<< "Exception during Graylog Gelf operation: " << DiagnosticInformation(std::move(exp));
129+
Log(LogCritical, "GelfWriter") << "Exception during Graylog Gelf operation: " << DiagnosticInformation(exp, false);
130+
Log(LogDebug, "GelfWriter") << "Exception during Graylog Gelf operation: " << DiagnosticInformation(exp, true);
133131

134132
DisconnectInternal();
135133
}

0 commit comments

Comments
 (0)