]> granicus.if.org Git - icinga2/commitdiff
Hide stack traces for warning log level in the ExternalCommandListener feature
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 8 Feb 2017 15:11:58 +0000 (16:11 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 8 Feb 2017 15:11:58 +0000 (16:11 +0100)
fixes #3483

lib/compat/externalcommandlistener.cpp

index 3278831a7b217f9cbafbfe60d1bfd027474506dc..90669fafd041083920c6027304f6fc238568a85e 100644 (file)
@@ -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);
                                }
                        }
                }