]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91555: disable logger while handling log record (GH-131812)
authorDuane Griffin <duaneg@dghda.com>
Thu, 8 May 2025 12:33:06 +0000 (00:33 +1200)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 12:33:06 +0000 (13:33 +0100)
commit2561e148ec985755baa3984b91fd0bfc089b283c
tree348acee07dcdc29dbd8a21056f2fdf3dc92329f0
parent8bb92863dec074c74392a0dd9a3acc45e5b7ac5a
gh-91555: disable logger while handling log record (GH-131812)

Prevent the possibility of re-entrancy leading to deadlock or infinite recursion (caused by logging triggered by logging), by disabling logging while the logger is handling log messages.
Lib/logging/__init__.py
Lib/test/test_logging.py
Misc/NEWS.d/next/Library/2025-03-30-16-42-38.gh-issue-91555.ShVtwW.rst [new file with mode: 0644]