logger: Fail all plugins if any fail (#3488)

This commit is contained in:
Teddy Reed 2017-07-24 00:26:19 -07:00 committed by GitHub
parent e4c0557e1b
commit 9b7ce1b5ad

View File

@ -77,7 +77,7 @@ Status RegistryInterface::setActive(const std::string& item_name) {
}
}
Status status(0, "OK");
Status status;
active_ = item_name;
// The active plugin is setup when initialized.
for (const auto& item : osquery::split(item_name, ",")) {
@ -90,6 +90,10 @@ Status RegistryInterface::setActive(const std::string& item_name) {
// start their extension socket.
status = pingExtension(getExtensionSocket(external_.at(item_name)));
}
if (!status.ok()) {
break;
}
}
return status;
}