]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#1021: fix a bug to allow basicConfig to accept NOTSET as a level.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 16 Mar 2008 21:33:48 +0000 (21:33 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 16 Mar 2008 21:33:48 +0000 (21:33 +0000)
Lib/logging/__init__.py

index 4fd582cd85833c75f4bd3b56e106834b69250cc6..39ffae77a8d94801a4f01f6aaff67b19ca5f131d 100644 (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)
 
 #---------------------------------------------------------------------------