New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
watcher: Do not initialize the config in watcher #3403
Conversation
|
@theopolis updated the pull request - view changes |
osquery/core/init.cpp
Outdated
| // Conditionally begin the distributed query service | ||
| auto s = osquery::startDistributed(); | ||
| if (!s.ok()) { | ||
| VLOG(1) << "Not starting the distributed query service: " << s.toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need an #include <osquery/logger.h>
osquery/main/windows/daemon.cpp
Outdated
| @@ -16,12 +16,9 @@ | |||
|
|
|||
| #include <osquery/core.h> | |||
| #include <osquery/flags.h> | |||
| #include <osquery/logger.h> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PoppySeedPlehzr, this is the line that should be included, right?
|
@theopolis updated the pull request - view changes |
|
@theopolis updated the pull request - view changes |
|
@theopolis updated the pull request - view changes |
|
@theopolis updated the pull request - view changes |


This should fix an error in the watchdog, where an exception is thrown when attempting to use the database. Previously we used the
Config, and on initialization it constructed aSchedule, which attempted to look up the last-failed query from the database.