Commit 6e8bc9a
committed
[fix] Fix migration logging
Python "logging" module handles a hierarchy of loggers. Loggers can be
given handlers to handle the actual log message. If a logger doesn't
have a handler then the parent's handler will be used. "logger.handlers"
is an array containing the direct handlers, but "logger.hasHandlers()"
returns true even if the parent has a handler. So, the array can be
empty and "hasHandlers()" still returns True.1 parent 0bbf351 commit 6e8bc9a
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
0 commit comments