[3.6] bpo-31457: Don't omit inner `process()` calls with nested LogAdapters by miss-islington · Pull Request #4050 · python/cpython

@ambv @miss-islington

…rs (pythonGH-4044)

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

@Mariatta Mariatta changed the title [3.6] title [3.6] bpo-31457: Don't omit inner process() calls with nested LogAdapters

Oct 19, 2017

Mariatta