Commit 3793084
authored
fix(debug): Take into account parent handlers for debug logger (#4133)
We only check `logger.handlers` for existing handlers. This ignores any
potential parent handlers. By using `hasHandlers()`
([docs](https://docs.python.org/3/library/logging.html#logging.Logger.hasHandlers))
instead we take those into account as well.
Closes #39441 parent 4f51ff3 commit 3793084
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments