Kaydet (Commit) 26c289dd authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Łukasz Langa

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

This used to be the case on Python 2.  Commit
212b590e 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 ce9e6254)
Co-authored-by: 's avatarŁukasz Langa <lukasz@langa.pl>
üst 5c0a8bb1
If nested log adapters are used, the inner ``process()`` methods are no
longer omitted.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment