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

This used to be the case on Python 2.  Commit
212b590e11 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 ce9e625445)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
Miss Islington (bot) 2018-04-22 15:00:30 -07:00 committed by Łukasz Langa
parent 5c0a8bb1c2
commit 26c289dd76
1 changed files with 2 additions and 0 deletions

View File

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