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

Chore: Update default log level Debug->Info #1794

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

Baarsgaard
Copy link
Contributor

@Baarsgaard Baarsgaard commented Dec 16, 2024

Switching to production mode has the side-effect that the default encoder also changed to jsonEncoder
It might make sense to keep the consoleEncoder, hence Development mode is explicitly enabled in the makefile.

Should I also create an overlay or similar configuration for the make deploy target which enables Development mode for outputting debug logs?
In case we start using them.

@Baarsgaard Baarsgaard marked this pull request as ready for review December 16, 2024 12:04
@theSuess
Copy link
Member

Can we still keep the consoleEncoder by default? I hope nobody relies on automatic log parsing from the operator but you never know 😅

Due to using production mode, the default encoder changed to json
@Baarsgaard Baarsgaard force-pushed the update_default_log_level branch from 6b27219 to 2c4d213 Compare December 18, 2024 09:13
@Baarsgaard
Copy link
Contributor Author

@theSuess figured it out.
This took me way longer to figure out than I want to admit due to zap, zapr, zapcore, uber/zap packages being slightly different and reusing function names and wrapping eachother...............

@theSuess theSuess added this pull request to the merge queue Dec 18, 2024
Merged via the queue into grafana:master with commit 7d46ac8 Dec 18, 2024
14 checks passed
@Baarsgaard Baarsgaard deleted the update_default_log_level branch December 18, 2024 11:45
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.

2 participants