Change to basicConfig() to fix #1021.
This commit is contained in:
parent
4df367c08d
commit
90d93615d6
|
@ -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