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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90d93615d65ee62a1145c8fea4a45aaf64671234;p=thirdparty%2FPython%2Fcpython.git Change to basicConfig() to fix #1021. --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index c7058d803a8b..daab53d0a143 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) #---------------------------------------------------------------------------