Repository navigation
fix(ddev-router): only show Traefik ERR (not WRN) as config problems, fixes #8102 - #8125
Merged
rfay merged 3 commits intoFeb 11, 2026
Merged
Conversation
…dev#8102 ## The Issue - Fixes ddev#8102 With debug logging enabled in ~/.ddev/traefik (e.g. static_config.loglevel.yaml), Traefik emits many WRN (warning) lines. These were captured into the router error file and shown as "Warning: There are router configuration problems" on `ddev start` and "Detected configuration error(s)" on `ddev list`, which is noisy and misleading. ## How This PR Solves The Issue - In `containers/ddev-traefik-router/monitor-traefik-stderr.sh`, only lines containing Traefik **ERR** (error level) are appended to `/tmp/ddev-traefik-errors.txt`; **WRN** (warning) and debug lines are no longer written there (they still appear in `ddev logs ddev-router`). - ERR is matched as a word (`\bERR\b`) to avoid false positives. - Healthcheck-generated "WARNING: ..." lines are unchanged (written by the healthcheck script, not the monitor). - Docs updated to state that only ERR is shown as router configuration problems; WRN/debug remain in router logs. ## Manual Testing Instructions 1. Copy `~/.ddev/traefik/static_config.loglevel.yaml.example` to `~/.ddev/traefik/static_config.loglevel.yaml` to enable debug logging. 2. Run `ddev poweroff && ddev start` (and optionally `ddev list`). 3. Confirm that Traefik WRN lines (e.g. encoded-characters note, "No domain found in rule" SNI messages) no longer appear under "Warning: There are router configuration problems" / "Detected configuration error(s)". 4. Confirm WRN lines still appear in `ddev logs ddev-router`. 5. Optionally introduce a real Traefik config error and confirm ERR lines still appear as router configuration problems. ## Automated Testing Overview No new tests. Existing Traefik router Bats tests assert on healthcheck-written lines in the error file (e.g. "WARNING: Router count mismatch"), which are unchanged. The monitor script change only affects which Traefik log lines are written to the file. ## Release/Deployment Notes Router image is rebuilt and distributed with DDEV releases; no extra deployment steps. Users with debug logging enabled will see fewer false "router configuration problems" after upgrading. Co-authored-by: Cursor <[email protected]>
stasadev
approved these changes
Feb 10, 2026
stasadev
left a comment
Member
There was a problem hiding this comment.
Thank you!
I pushed a new image and fixed the non-working check for ERR:
-if echo "$line" | grep -qE '\bERR\b'; then
+if echo "$line" | sed -r 's/\x1B\[[0-9;]*m//g' | grep -qw 'ERR'; thenTo check what's actually is going to be ignored:
- Go to https://github.dev/traefik/traefik
- Search for
Warn().Msg
Looks good to me.
|
Download the artifacts for this pull request:
See Testing a PR. |
rfay
approved these changes
Feb 11, 2026
rfay
left a comment
Member
There was a problem hiding this comment.
It's great, code is good. Manually tested using ~/.ddev/traefik/custom-global-config with broken config and got error output still.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Issue
ddev startandddev list#8102With debug logging enabled in ~/.ddev/traefik (e.g. static_config.loglevel.yaml), Traefik emits many WRN (warning) lines. These were captured into the router error file and shown as "Warning: There are router configuration problems" on
ddev startand "Detected configuration error(s)" onddev list, which is noisy and misleading.How This PR Solves The Issue
containers/ddev-traefik-router/monitor-traefik-stderr.sh, only lines containing Traefik ERR (error level) are appended to/tmp/ddev-traefik-errors.txt; WRN (warning) and debug lines are no longer written there (they still appear inddev logs ddev-router).\bERR\b) to avoid false positives.Manual Testing Instructions
~/.ddev/traefik/static_config.loglevel.yaml.exampleto~/.ddev/traefik/static_config.loglevel.yamlto enable debug logging.ddev poweroff && ddev start(and optionallyddev list).ddev logs ddev-router.Automated Testing Overview
No new tests. Existing Traefik router Bats tests assert on healthcheck-written lines in the error file (e.g. "WARNING: Router count mismatch"), which are unchanged. The monitor script change only affects which Traefik log lines are written to the file.
Release/Deployment Notes
Router image is rebuilt and distributed with DDEV releases; no extra deployment steps. Users with debug logging enabled will see fewer false "router configuration problems" after upgrading.