Commit a5838b5
committed
Defer logging.handlers with a plain lazy import in config.py
Drops the "as logging_handlers" alias and the nine renames that came with
it. The dotted spelling defers the submodule just as well for import time,
and resolving the module's own logging global is what binds handlers in
vars(logging) again, so the documented handlers.X spelling in fileConfig()
config files works in a fresh process.1 parent f68adec commit a5838b5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments