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

Don't log stack traces on HTTP errors #65

Merged
merged 2 commits into from
Apr 5, 2024
Merged

Don't log stack traces on HTTP errors #65

merged 2 commits into from
Apr 5, 2024

Conversation

lkiesow
Copy link
Member

@lkiesow lkiesow commented Mar 28, 2024

This patch prevents stack traces from being logged on pure HTTP related errors. The error message should be sufficient to identify incorrect configurations and we have less clutter in the logs.

This fixes #34

This patch prevents stack traces from being logged on pure HTTP related
errors. The error message should be sufficient to identify incorrect
configurations and we have less clutter in the logs.

This fixes #34
occameracontrol/metrics.py Outdated Show resolved Hide resolved
occameracontrol/metrics.py Outdated Show resolved Hide resolved
@tibroc tibroc merged commit 89d0ae5 into main Apr 5, 2024
9 checks passed
@lkiesow lkiesow deleted the http-exc-logs branch April 6, 2024 15:50
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.

Log only HTTP errors? Or log stack traces?
2 participants