bpo-31457: Don't omit inner process() calls with nested LogAdapte… · python/cpython@26c289d (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 26c289d

miss-islingtonambv

and

committed

bpo-31457: Don't omit inner process() calls with nested LogAdapters (GH-4044) (#6568)

This used to be the case on Python 2. Commit212b590 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 ce9e625) Co-authored-by: Łukasz Langa lukasz@langa.pl

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1 +If nested log adapters are used, the inner ``process()`` methods are no
2 +longer omitted.