Daemon: Deal with exceptions from broken _api package

This commit is contained in:
Michael Friedrich 2019-04-26 14:43:10 +02:00
parent c821e73364
commit 0d6d48fd59
1 changed files with 7 additions and 1 deletions

View File

@ -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;