]> granicus.if.org Git - python/commitdiff
Change to basicConfig() to fix #1021.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 27 Sep 2007 05:38:51 +0000 (05:38 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 27 Sep 2007 05:38:51 +0000 (05:38 +0000)
Lib/logging/__init__.py

index c7058d803a8bdce05a9d54a7472e0f58afc7a73f..daab53d0a1432892f871bd4476f48c88db36ea5f 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)
 
 #---------------------------------------------------------------------------