diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2007-09-27 05:38:51 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2007-09-27 05:38:51 (GMT) |
commit | 90d93615d65ee62a1145c8fea4a45aaf64671234 (patch) | |
tree | 2e995ed8820e89648fc92061f94fc94b269cfe51 /Lib/logging | |
parent | 4df367c08d042f2bc6b789d197c86cf4c13a15df (diff) | |
download | cpython-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__.py | 2 |
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) #--------------------------------------------------------------------------- |