mirror of https://github.com/Icinga/icinga2.git
Daemon: Deal with exceptions from broken _api package
This commit is contained in:
parent
c821e73364
commit
0d6d48fd59
|
@ -289,7 +289,13 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
|
|||
}
|
||||
|
||||
/* Remove ignored Downtime/Comment objects. */
|
||||
ConfigItem::RemoveIgnoredItems(ConfigObjectUtility::GetConfigDir());
|
||||
try {
|
||||
String configDir = ConfigObjectUtility::GetConfigDir();
|
||||
ConfigItem::RemoveIgnoredItems(configDir);
|
||||
} catch (const std::exception& ex) {
|
||||
Log(LogNotice, "cli")
|
||||
<< "Cannot clean ignored downtimes/comments: " << ex.what();
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
struct sigaction sa;
|
||||
|
|
Loading…
Reference in New Issue