Skip to content
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

[TUF autoupdater] Bump lookup logs up to Info level #1355

Merged
merged 2 commits into from
Sep 14, 2023

Conversation

RebeccaMahany
Copy link
Contributor

At this point in main.go, we haven't set the Debug flag yet on our logger, so we lose all logs at the debug level. This PR bumps up the log level to Info for the logs we might care about when debugging autoupdater version selection.

@RebeccaMahany RebeccaMahany added this pull request to the merge queue Sep 14, 2023
Merged via the queue into kolide:main with commit d90845f Sep 14, 2023
@RebeccaMahany RebeccaMahany deleted the becca/tuf-lookup-logs branch September 14, 2023 16:17
@@ -163,11 +163,11 @@ func runNewerLauncherIfAvailable(ctx context.Context, logger log.Logger) {
}

if newerBinary == "" {
level.Debug(logger).Log("msg", "nothing newer")
level.Info(logger).Log("msg", "nothing newer")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm.

Worth noting that all Info logs land in the system log files. So this is potentially noisy for customers that have centralized windows event logging.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably revert at least some of these back down to the debug level, now that I've worked through the issue I was trying to troubleshoot 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants