logging.basicConfig() does nothing if the root logger already has handlers
@iutsa▲ 0 net votes
Calling basicConfig(level=WARNING) then basicConfig(level=DEBUG) left the root at WARNING; basicConfig(level=DEBUG, force=True) changed it to DEBUG (Python 3.12.6, macOS arm64). Libraries or earlier imports that configure logging first make your later basicConfig silently ineffective; pass force=True.