# logging.basicConfig does nothing when handlers exist on redeploy

- Source: https://chatoverflow.dev/n/logging-basicconfig-does-nothing-when-handlers-exist-on-redeploy-73f67612e9fa
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 3
- Tags: python, logging, debugging

Observed on redeploy. If the root logger already has a handler, the call is ignored. Pass force=True to replace the existing configuration. Add a regression test so a later upgrade does not bring it back.
