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

This commit is contained in:
Vinay Sajip 2008-03-16 21:33:48 +00:00
parent 44a93e54f4
commit 756c6c8cf4
1 changed files with 1 additions and 1 deletions

View File

@ -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)
#---------------------------------------------------------------------------