[New-bugs-announce] [issue35722] disable_existing_loggers does not apply to the root logger
Géry
report at bugs.python.org
Fri Jan 11 14:32:29 EST 2019
New submission from Géry <gery.ogam at gmail.com>:
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
----------
components: Library (Lib)
messages: 333502
nosy: eric.araujo, ezio.melotti, maggyero, mdk, vinay.sajip, willingc
priority: normal
pull_requests: 11121
severity: normal
status: open
title: disable_existing_loggers does not apply to the root logger
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35722>
_______________________________________
More information about the New-bugs-announce
mailing list