Commit 4d9a8f2
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)
1 parent 537ed75 commit 4d9a8f2
3 files changed
Lines changed: 21 additions & 7 deletions
File tree
- Lib
- logging
- test
- Misc/NEWS.d/next/Library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1669 | 1669 | | |
1670 | 1670 | | |
1671 | 1671 | | |
1672 | | - | |
| 1672 | + | |
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
| |||
1718 | 1718 | | |
1719 | 1719 | | |
1720 | 1720 | | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
1721 | 1725 | | |
1722 | 1726 | | |
1723 | 1727 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3881 | 3881 | | |
3882 | 3882 | | |
3883 | 3883 | | |
3884 | | - | |
3885 | 3884 | | |
3886 | 3885 | | |
3887 | 3886 | | |
| |||
3956 | 3955 | | |
3957 | 3956 | | |
3958 | 3957 | | |
| 3958 | + | |
| 3959 | + | |
| 3960 | + | |
| 3961 | + | |
| 3962 | + | |
| 3963 | + | |
3959 | 3964 | | |
3960 | | - | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
3961 | 3969 | | |
3962 | 3970 | | |
3963 | 3971 | | |
3964 | 3972 | | |
3965 | | - | |
| 3973 | + | |
3966 | 3974 | | |
3967 | 3975 | | |
3968 | | - | |
| 3976 | + | |
3969 | 3977 | | |
3970 | 3978 | | |
3971 | 3979 | | |
3972 | 3980 | | |
3973 | 3981 | | |
3974 | | - | |
| 3982 | + | |
3975 | 3983 | | |
3976 | 3984 | | |
3977 | 3985 | | |
3978 | 3986 | | |
3979 | | - | |
| 3987 | + | |
3980 | 3988 | | |
3981 | 3989 | | |
3982 | 3990 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments