diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-10-19 18:11:49 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-10-19 18:11:49 (GMT) |
commit | 4d9a8f22999de489ede9216ff983d4359d837760 (patch) | |
tree | 1f30bcc8bb578060e25ee273edd07dcb61359102 /Python/ast.c | |
parent | 537ed75291ed8a640887f199f98e2e5076ef87b6 (diff) | |
download | cpython-4d9a8f22999de489ede9216ff983d4359d837760.zip cpython-4d9a8f22999de489ede9216ff983d4359d837760.tar.gz cpython-4d9a8f22999de489ede9216ff983d4359d837760.tar.bz2 |
bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (GH-4044) (GH-4050)
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)
Diffstat (limited to 'Python/ast.c')
0 files changed, 0 insertions, 0 deletions