mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-12 08:14:30 +02:00
Partially revert "Error messages: Properly handle livestatus/cmd pipe errors."
This reverts commit efa8fdcb8e5cebe08c27d13e5ba27998245a5063. refs #7160
This commit is contained in:
parent
06378b4784
commit
fbce8e430a
@ -134,9 +134,9 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
|
||||
Log(LogInformation, "ExternalCommandListener", "Executing external command: " + command);
|
||||
|
||||
ExternalCommandProcessor::Execute(command);
|
||||
} catch (const std::exception&) {
|
||||
} catch (const std::exception& ex) {
|
||||
std::ostringstream msgbuf;
|
||||
msgbuf << "External command failed.";
|
||||
msgbuf << "External command failed." << DiagnosticInformation(ex);
|
||||
Log(LogWarning, "ExternalCommandListener", msgbuf.str());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user