]> granicus.if.org Git - python/commit
bpo-31457: Allow for nested LoggerAdapter objects (#3551)
authorŁukasz Langa <lukasz@langa.pl>
Thu, 14 Sep 2017 15:34:47 +0000 (11:34 -0400)
committerGitHub <noreply@github.com>
Thu, 14 Sep 2017 15:34:47 +0000 (11:34 -0400)
commit1bbd482bcf6ea36bfe488f868810ffe110238ae1
tree02fcd023fe78fa0b95287b493d75a0d1c963f48d
parent5a61559fb0776a9a0f08294ec9003cea13940430
bpo-31457: Allow for nested LoggerAdapter objects (#3551)

Some of the proxied methods use internal Logger state which isn't proxied,
causing failures if an adapter is applied to another adapter.

This commit fixes the issue, adds a new test for the use case.
Lib/logging/__init__.py
Lib/test/test_logging.py
Misc/NEWS.d/next/Library/2017-09-13-13-33-39.bpo-31457.bIVBtI.rst [new file with mode: 0644]