diff options
author | Ćukasz Langa <lukasz@langa.pl> | 2017-10-19 17:24:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 17:24:55 (GMT) |
commit | ce9e62544571e7ade7186697d5dd065fb4c5243f (patch) | |
tree | 1ba66445412bb1b0fcbbb46d7a19cd5fa2b3de8d /Misc | |
parent | 05a634b12a8207611ae8e9d051427d615fcacb69 (diff) | |
download | cpython-ce9e62544571e7ade7186697d5dd065fb4c5243f.zip cpython-ce9e62544571e7ade7186697d5dd065fb4c5243f.tar.gz cpython-ce9e62544571e7ade7186697d5dd065fb4c5243f.tar.bz2 |
bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (#4044)
This used to be the case on Python 2. Commit
212b590e118e3650b596917021ed9612a918180b changed the implementation for Python
3, making the `log()` method of LogAdapter call `logger._log()` directly. This
makes nested log adapters not execute their ``process()`` method. This patch
fixes the issue.
Also, now proxying `name`, too, to make `repr()` work with nested log adapters.
New tests added.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-10-18-19-05-17.bpo-31457.KlE6r8.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-10-18-19-05-17.bpo-31457.KlE6r8.rst b/Misc/NEWS.d/next/Library/2017-10-18-19-05-17.bpo-31457.KlE6r8.rst new file mode 100644 index 0000000..49463c4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-10-18-19-05-17.bpo-31457.KlE6r8.rst @@ -0,0 +1,2 @@ +If nested log adapters are used, the inner ``process()`` methods are no +longer omitted. |