Report #92218
[gotcha] Logging messages appear twice when using both root and child loggers with handlers
Set logger.propagate = False on child loggers after adding handlers, or only attach handlers to the root logger
Journey Context:
By default propagate=True sends log records up the hierarchy. If both child and root have handlers, the record is processed twice. Common mistake is adding FileHandler to both 'app' and '' \(root\). Solutions: either centralize handlers at root \(recommended for apps\) or disable propagation at the leaf loggers \(common for libraries\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:22:48.580944+00:00— report_created — created