-
Notifications
You must be signed in to change notification settings - Fork 16
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
Option to disable logs for health checks #227
Comments
Some time ago I added an env to change log level when you using a standalone server but it still in unreleased changes. You can try to build a new image from repo and check if it fixes your issue. Setting this env to error level resolved my issue with riverui spamming my console. Command to build a new image you can find in makefile it’s pretty simple |
@TArch64 that was just released in v0.6.0, sorry for the delay! @hypnoglow I'm not quite sure the best way to make this toggle-able. I guess a boolean flag, but I'm having trouble thinking of good names. Got any ideas and want to take a crack at a PR for it? |
@bgentry do you think it should be as a new option? Health check logs looks like info or debug logs so if you want to have less logs you need to set another log level |
I believe the only logs there are for the request, same as the other request logs. Health check routes are noisy enough to warrant a special setting to either disable them or change the level to debug based on the filter. |
Maybe |
Health check endpoint logs are noisy, and we prefer to disable them in most apps.
It would be great if we could disable them when using binary from
cmd/riverui
.I believe this should be configurable using
slog-http
Config.Filters
here: https://github.com/riverqueue/riverui/blob/master/cmd/riverui/main.go#L97C21-L97C27The text was updated successfully, but these errors were encountered: