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

Update logging config to allow for more control over loggers #1071

Merged
merged 7 commits into from
Mar 21, 2024

Conversation

ChrisSchinnerl
Copy link
Member

@ChrisSchinnerl ChrisSchinnerl commented Mar 15, 2024

Updates the config to be similar to hostds to give more fine-grained control to the user.
Considering that our logging right now (except for the database) defaults to "DEBUG" and I don't think that's what we actually want, I changed the default log level to "INFO" while making sure everything logged right now using Debug is using Info to keep it getting logged for now. That should allow us to use Debug more freely since it won't affect the default experience of users. Later we can think about whether we want to lower the log level of some of the existing logging to "DEBUG" but imo we have been logging pretty sparingly so far.

Closes #1017

@ChrisSchinnerl ChrisSchinnerl marked this pull request as draft March 15, 2024 16:27
@ChrisSchinnerl ChrisSchinnerl force-pushed the chris/update-logger-config branch from 14e4283 to a2f1e2b Compare March 18, 2024 12:13
@ChrisSchinnerl ChrisSchinnerl force-pushed the chris/update-logger-config branch from 6a4b050 to 46da673 Compare March 18, 2024 13:28
@ChrisSchinnerl ChrisSchinnerl marked this pull request as ready for review March 18, 2024 13:52
@ChrisSchinnerl ChrisSchinnerl self-assigned this Mar 19, 2024
cmd/renterd/main.go Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl requested a review from peterjan March 20, 2024 14:51
@ChrisSchinnerl ChrisSchinnerl merged commit 0b8a547 into dev Mar 21, 2024
8 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the chris/update-logger-config branch March 21, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add option to disable logging to file
3 participants