From 90d93615d65ee62a1145c8fea4a45aaf64671234 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Thu, 27 Sep 2007 05:38:51 +0000 Subject: Change to basicConfig() to fix #1021. --- 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 c7058d8..daab53d 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) #--------------------------------------------------------------------------- -- cgit v0.12