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

Disable logging of health check requests #273

Merged
merged 1 commit into from
Feb 20, 2025
Merged

Conversation

haatveit
Copy link
Contributor

Since this endpoint will be probed very frequently in k8s environments, it makes for a lot of noise in log output if each hit is going to emit a log line.

This commit disables logging in the HealthCheckHandler, which I think is a small loss considering it'll only ever respond in exactly the same way as long as the API is running. If we implement a more complex health check at a later point in time, I think it would make sense to come back to this and ensure that we log non-good responses, but for now I don't think this needs to be configurable.

This PR resolves #272.

@haatveit haatveit requested a review from leondutoit February 20, 2025 11:01
@haatveit haatveit merged commit 57be1cf into master Feb 20, 2025
10 checks passed
@haatveit haatveit deleted the disable-health-log branch February 20, 2025 11:44
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.

Health endpoint with option to disable logging
3 participants