This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author maggyero
Recipients eric.araujo, ezio.melotti, maggyero, mdk, vinay.sajip, willingc
Date 2019-01-11.19:32:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547235149.9.0.274775552253.issue35722@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-01-11 19:32:33maggyerosetrecipients: + maggyero, vinay.sajip, ezio.melotti, eric.araujo, willingc, mdk
2019-01-11 19:32:29maggyerosetmessageid: <1547235149.9.0.274775552253.issue35722@roundup.psfhosted.org>
2019-01-11 19:32:29maggyerolinkissue35722 messages
2019-01-11 19:32:29maggyerocreate