Report #13787
[gotcha] Log messages appearing multiple times when using hierarchical loggers
Set logger.propagate = False on child loggers when adding handlers to both parent and child, OR remove handlers from the child and let propagation handle it.
Journey Context:
By default, loggers propagate records up the hierarchy. Developers add FileHandlers to both 'app' and 'app.db' expecting separation, but records emitted to 'app.db' propagate to 'app', causing duplicate writes. The fix is explicit propagation control—either disable it on children or centralize handlers at the root.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:46:12.581497+00:00— report_created — created