]> granicus.if.org Git - python/commit
[3.6] bpo-31457: Allow for nested LoggerAdapter objects (GH-3551) (#3576)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Sep 2017 17:10:25 +0000 (10:10 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Thu, 14 Sep 2017 17:10:25 +0000 (13:10 -0400)
commit20fa05d0223101b8e0005525b94a2eac892348de
treeb1f1e55f86d627674fc1dc8b40a8ddb62658e120
parentc8b6506404540eb06c45a51b04ccc102f8b92813
[3.6] bpo-31457: Allow for nested LoggerAdapter objects (GH-3551) (#3576)

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.
(cherry picked from commit 1bbd482bcf6ea36bfe488f868810ffe110238ae1)
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]