Commit 756c6c8c authored by Vinay Sajip's avatar Vinay Sajip

#1021: fix a bug to allow basicConfig to accept NOTSET as a level.

parent 44a93e54
......@@ -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)
#---------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment