Skip to content

fix: Remove log-level escalation for 4xx/5xx in access log#400

Merged
tarampampam merged 3 commits intomasterfrom
fix/accesslog-level
May 4, 2026
Merged

fix: Remove log-level escalation for 4xx/5xx in access log#400
tarampampam merged 3 commits intomasterfrom
fix/accesslog-level

Conversation

@tarampampam
Copy link
Copy Markdown
Owner

Previously, the middleware bumped the log level to warn for 4xx and error for 5xx responses. Since error-pages is purpose-built to serve error pages, every normal request produces a 4xx/5xx response (with enabled --send-same-http-code) - making those elevated log entries pure noise (see #397).

The middleware now always logs at the caller-configured level (info) with a uniform Request successfully processed message.

@tarampampam tarampampam marked this pull request as ready for review May 4, 2026 20:17
@tarampampam tarampampam self-assigned this May 4, 2026
@tarampampam tarampampam added the type:fix PR that fixes a bug label May 4, 2026
@tarampampam tarampampam merged commit 2eeec0a into master May 4, 2026
13 checks passed
@tarampampam tarampampam deleted the fix/accesslog-level branch May 4, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:fix PR that fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant