mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.10] gh-90195: Unset logger disabled flag when configuring it. (GH-96530) (GH-96533)
This commit is contained in:
parent
7b163f88b6
commit
c3dbbc88da
2 changed files with 33 additions and 2 deletions
|
|
@ -794,6 +794,7 @@ def configure_logger(self, name, config, incremental=False):
|
|||
"""Configure a non-root logger from a dictionary."""
|
||||
logger = logging.getLogger(name)
|
||||
self.common_logger_config(logger, config, incremental)
|
||||
logger.disabled = False
|
||||
propagate = config.get('propagate', None)
|
||||
if propagate is not None:
|
||||
logger.propagate = propagate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue