File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 39
39
- fix #324 : document/recommend the v tag prefix
40
40
- fix #501 : add py.typed
41
41
- fix #804 : git - use fallback version instead of 0.0 when no version is found at all
42
+ - fix #1139 : use logging.lastResort instead of a own replica to avoid polluting logging._ handlerList
42
43
43
44
## v8.3.1
44
45
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ def make_default_handler() -> logging.Handler:
39
39
40
40
return RichHandler (console = console )
41
41
except ImportError :
42
- handler = AlwaysStdErrHandler ()
43
- handler . setFormatter ( logging . Formatter ( "%(levelname)s %(name)s %(message)s" ))
44
- return handler
42
+ last_resort = logging . lastResort
43
+ assert last_resort is not None
44
+ return last_resort
45
45
46
46
47
47
_default_handler = make_default_handler ()
You can’t perform that action at this time.
0 commit comments