Commit 8efaa45
authored
fix(logging): route uvicorn logs through the JSON pipeline (#51)
PR #48 ("Splunk-friendly JSON logs") missed that uvicorn attaches its own
plaintext StreamHandlers to the `uvicorn` / `uvicorn.error` / `uvicorn.access`
loggers with `propagate=False`. Result: app logs are JSON but uvicorn boot
lines ("Started server process", "Application startup complete",
"Uvicorn running on …") stay as `INFO:` plain text, fragmenting Splunk
parsing.
Strip those handlers and re-enable propagation so every uvicorn record
flows through the root JSON handler. This is the same one-liner noergler
already carries in app/logging_config.py:90-93 (PR #124).1 parent 8eeeb5a commit 8efaa45
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
80 | 90 | | |
81 | 91 | | |
82 | 92 | | |
| |||
0 commit comments