mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
Only log to warning if the config can't be read by the daemon
fix #1504
This commit is contained in:
parent
7852c356ec
commit
dc6e395b77
@ -431,7 +431,12 @@ void Initializer::start() {
|
||||
// Load the osquery config using the default/active config plugin.
|
||||
auto s = Config::getInstance().load();
|
||||
if (!s.ok()) {
|
||||
LOG(ERROR) << "Error reading config: " << s.toString();
|
||||
auto message = "Error reading config: " + s.toString();
|
||||
auto severity = google::GLOG_INFO;
|
||||
if (tool_ == OSQUERY_TOOL_DAEMON) {
|
||||
severity = google::GLOG_WARNING;
|
||||
}
|
||||
google::LogMessage(__FILE__, __LINE__, severity, &message);
|
||||
}
|
||||
|
||||
// Initialize the status and result plugin logger.
|
||||
|
Loading…
Reference in New Issue
Block a user