mirror of https://github.com/python/cpython
#1021: fix a bug to allow basicConfig to accept NOTSET as a level.
This commit is contained in:
parent
44a93e54f4
commit
756c6c8cf4
|
@ -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…
Reference in New Issue