mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-03 03:44:28 +02:00
GelfWriter: show error message of exceptions
This commit is contained in:
parent
8da90d44fa
commit
c2abb0c9dc
@ -126,10 +126,8 @@ void GelfWriter::AssertOnWorkQueue()
|
|||||||
|
|
||||||
void GelfWriter::ExceptionHandler(boost::exception_ptr exp)
|
void GelfWriter::ExceptionHandler(boost::exception_ptr exp)
|
||||||
{
|
{
|
||||||
Log(LogCritical, "GelfWriter", "Exception during Graylog Gelf operation: Verify that your backend is operational!");
|
Log(LogCritical, "GelfWriter") << "Exception during Graylog Gelf operation: " << DiagnosticInformation(exp, false);
|
||||||
|
Log(LogDebug, "GelfWriter") << "Exception during Graylog Gelf operation: " << DiagnosticInformation(exp, true);
|
||||||
Log(LogDebug, "GelfWriter")
|
|
||||||
<< "Exception during Graylog Gelf operation: " << DiagnosticInformation(std::move(exp));
|
|
||||||
|
|
||||||
DisconnectInternal();
|
DisconnectInternal();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user