From 756c6c8cf40f4b75deac22a709efc891929ae053 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Sun, 16 Mar 2008 21:33:48 +0000 Subject: [PATCH] #1021: fix a bug to allow basicConfig to accept NOTSET as a level. --- Lib/logging/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 4fd582cd858..39ffae77a8d 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) #---------------------------------------------------------------------------