Commit 0162cc9
committed
fix(traefik): log all 4xx/5xx access events, not just slow retries
Traefik combines accessLog.filters fields with AND, so configuring
both `retryAttempts: true` and `minDuration: '1s'` alongside
`statusCodes: 400-599` meant a request had to be a 4xx/5xx AND
have been retried AND have taken longer than 1s before it would
appear in the access log. Most production errors were silently
dropped — including the fast 500s that matter most.
Drop the two extra filters so any 4xx/5xx is logged. Volume stays
manageable because errors are a small fraction of total traffic;
verbose normal-traffic logging remains gated behind the upstream
`log.level: WARN` setting.
Made-with: Cursor1 parent 3f9fccb commit 0162cc9
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
34 | | - | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments