From: Vinay Sajip Date: Sun, 16 Mar 2008 21:33:48 +0000 (+0000) Subject: #1021: fix a bug to allow basicConfig to accept NOTSET as a level. X-Git-Tag: v2.5.3c1~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=756c6c8cf40f4b75deac22a709efc891929ae053;p=thirdparty%2FPython%2Fcpython.git #1021: fix a bug to allow basicConfig to accept NOTSET as a level. --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 4fd582cd8583..39ffae77a8d9 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) #---------------------------------------------------------------------------