From: Michael Friedrich Date: Wed, 8 Feb 2017 15:11:58 +0000 (+0100) Subject: Hide stack traces for warning log level in the ExternalCommandListener feature X-Git-Tag: v2.7.0~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8fa4db45452b64270db33de709eae3c3c37b529;p=icinga2 Hide stack traces for warning log level in the ExternalCommandListener feature fixes #3483 --- diff --git a/lib/compat/externalcommandlistener.cpp b/lib/compat/externalcommandlistener.cpp index 3278831a7..90669fafd 100644 --- a/lib/compat/externalcommandlistener.cpp +++ b/lib/compat/externalcommandlistener.cpp @@ -158,7 +158,9 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath) ExternalCommandProcessor::Execute(command); } catch (const std::exception& ex) { Log(LogWarning, "ExternalCommandListener") - << "External command failed: " << DiagnosticInformation(ex); + << "External command failed: " << DiagnosticInformation(ex, false); + Log(LogNotice, "ExternalCommandListener") + << "External command failed: " << DiagnosticInformation(ex, true); } } }