diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2007-09-27 05:38:51 +0000 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2007-09-27 05:38:51 +0000 |
commit | 4cf3a73e40d55b3ea9c3c32ccb8ab02b40da4a73 (patch) | |
tree | 5421e962cbc192f02d0c75e32251cf7d40f3f51d /Lib/logging | |
parent | d6439ffa9c22fdd1f0056d8434b36f91d7b970f7 (diff) | |
download | cpython-4cf3a73e40d55b3ea9c3c32ccb8ab02b40da4a73.tar.gz |
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 c7058d803a..daab53d0a1 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) #--------------------------------------------------------------------------- |