summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2007-09-27 05:38:51 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2007-09-27 05:38:51 (GMT)
commit90d93615d65ee62a1145c8fea4a45aaf64671234 (patch)
tree2e995ed8820e89648fc92061f94fc94b269cfe51 /Lib/logging
parent4df367c08d042f2bc6b789d197c86cf4c13a15df (diff)
downloadcpython-90d93615d65ee62a1145c8fea4a45aaf64671234.zip
cpython-90d93615d65ee62a1145c8fea4a45aaf64671234.tar.gz
cpython-90d93615d65ee62a1145c8fea4a45aaf64671234.tar.bz2
Change to basicConfig() to fix #1021.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 1 insertions, 1 deletions
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)
#---------------------------------------------------------------------------