mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Closes #17521: Merged fix from 3.3.
This commit is contained in:
commit
8ec95b81d5
3 changed files with 37 additions and 4 deletions
|
@ -175,8 +175,8 @@ def _handle_existing_loggers(existing, child_loggers, disable_existing):
|
|||
logger.level = logging.NOTSET
|
||||
logger.handlers = []
|
||||
logger.propagate = True
|
||||
elif disable_existing:
|
||||
logger.disabled = True
|
||||
else:
|
||||
logger.disabled = disable_existing
|
||||
|
||||
def _install_loggers(cp, handlers, disable_existing):
|
||||
"""Create and install loggers"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue