Skip to content

fix: enable uvicorn log propagation to root structured handler#4

Merged
babs merged 1 commit intomasterfrom
fix/uvicorn-log-propagation
Apr 10, 2026
Merged

fix: enable uvicorn log propagation to root structured handler#4
babs merged 1 commit intomasterfrom
fix/uvicorn-log-propagation

Conversation

@babs
Copy link
Copy Markdown
Owner

@babs babs commented Apr 10, 2026

  • propagate=False with cleared handlers silently swallowed all uvicorn error/startup messages — set propagate=True so they reach the root structlog JSON handler
  • document uvicorn integration: programmatic usage requires log_config=None and access_log=False; CLI usage self-heals via module import order
  • remove duplicate dead assignment in AccessLogMiddleware.init

- propagate=False with cleared handlers silently swallowed all uvicorn
  error/startup messages — set propagate=True so they reach the root
  structlog JSON handler
- document uvicorn integration: programmatic usage requires
  log_config=None and access_log=False; CLI usage self-heals via
  module import order
- remove duplicate dead assignment in AccessLogMiddleware.__init__
@babs babs merged commit a9f1229 into master Apr 10, 2026
@babs babs deleted the fix/uvicorn-log-propagation branch April 10, 2026 21:04
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.

1 participant