Skip to content

feat: only log 5xx responses as errors#5

Merged
Crevil merged 1 commit intomainfrom
feature/only-error-log-5xx
Jan 26, 2026
Merged

feat: only log 5xx responses as errors#5
Crevil merged 1 commit intomainfrom
feature/only-error-log-5xx

Conversation

@Crevil
Copy link
Copy Markdown

@Crevil Crevil commented Jan 26, 2026

This change updates the request handler to only log with level error when a response is 5xx. This is to avoid cluttered error logs for unauthorized, not found, etc. exceptions.

We still keep them as debug for now to have insights into requests.

This change updates the request handler to only log with level error when a
response is 5xx. This is to avoid cluttered error logs for unauthorized, not
found, etc. exceptions.

We still keep them as debug for now to have insights into requests.
Copy link
Copy Markdown

@andersfibiger andersfibiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@Crevil Crevil merged commit 7162c89 into main Jan 26, 2026
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