From: Vinay Sajip Date: Thu, 27 Sep 2007 05:38:51 +0000 (+0000) Subject: Change to basicConfig() to fix #1021. X-Git-Tag: v2.6a1~1247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90d93615d65ee62a1145c8fea4a45aaf64671234;p=python Change to basicConfig() to fix #1021. --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index c7058d803a..daab53d0a1 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -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) #---------------------------------------------------------------------------