mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
Hide stack traces for warning log level in the ExternalCommandListener feature
fixes #3483
This commit is contained in:
parent
e5f5284838
commit
f8fa4db454
@ -158,7 +158,9 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
|
|||||||
ExternalCommandProcessor::Execute(command);
|
ExternalCommandProcessor::Execute(command);
|
||||||
} catch (const std::exception& ex) {
|
} catch (const std::exception& ex) {
|
||||||
Log(LogWarning, "ExternalCommandListener")
|
Log(LogWarning, "ExternalCommandListener")
|
||||||
<< "External command failed: " << DiagnosticInformation(ex);
|
<< "External command failed: " << DiagnosticInformation(ex, false);
|
||||||
|
Log(LogNotice, "ExternalCommandListener")
|
||||||
|
<< "External command failed: " << DiagnosticInformation(ex, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user