Message333502
In the logging package, the parameter disable_existing_loggers used in logging.config.dictConfig and logging.config.fileConfig does not apply to the root logger. More precisely, its disabled attribute remains unchanged (while it is set to True for non-root loggers). So it is either a bug or the documentation should be updated.
Illustration:
import logging.config
assert logging.getLogger().disabled is False
assert logging.getLogger("foo").disabled is False
logging.config.dictConfig({"version": 1})
assert logging.getLogger().disabled is False
assert logging.getLogger("foo").disabled is True |
|
Date |
User |
Action |
Args |
2019-01-11 19:32:33 | maggyero | set | recipients:
+ maggyero, vinay.sajip, ezio.melotti, eric.araujo, willingc, mdk |
2019-01-11 19:32:29 | maggyero | set | messageid: <1547235149.9.0.274775552253.issue35722@roundup.psfhosted.org> |
2019-01-11 19:32:29 | maggyero | link | issue35722 messages |
2019-01-11 19:32:29 | maggyero | create | |
|