diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-04-22 22:00:30 (GMT) |
---|---|---|
committer | Łukasz Langa <lukasz@langa.pl> | 2018-04-22 22:00:30 (GMT) |
commit | 26c289dd76ed07dbf37494bfa483c525f6828bd9 (patch) | |
tree | f285f132991a1f858908aa3706930580f8a5244e /Python/ast.c | |
parent | 5c0a8bb1c2c8d77c4b2d5002259d08fe6a277b40 (diff) | |
download | cpython-26c289dd76ed07dbf37494bfa483c525f6828bd9.zip cpython-26c289dd76ed07dbf37494bfa483c525f6828bd9.tar.gz cpython-26c289dd76ed07dbf37494bfa483c525f6828bd9.tar.bz2 |
bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (GH-4044) (#6568)
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.
(cherry picked from commit ce9e62544571e7ade7186697d5dd065fb4c5243f)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Python/ast.c')
0 files changed, 0 insertions, 0 deletions