mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Change to basicConfig() to fix #1021.
This commit is contained in:
parent
4df367c08d
commit
90d93615d6
1 changed files with 1 additions and 1 deletions
|
@ -1247,7 +1247,7 @@ def basicConfig(**kwargs):
|
|||
hdlr.setFormatter(fmt)
|
||||
root.addHandler(hdlr)
|
||||
level = kwargs.get("level")
|
||||
if level:
|
||||
if level is not None:
|
||||
root.setLevel(level)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue