commit | 756c6c8cf40f4b75deac22a709efc891929ae053 | [log] [tgz] |
---|---|---|
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Sun Mar 16 21:33:48 2008 +0000 |
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Sun Mar 16 21:33:48 2008 +0000 |
tree | e9cab2b9a06e9e3e77ef31fad5e9e9218b0142a0 | |
parent | 44a93e54f4b0f90634d16d53c437fabb6946ea9d [diff] |
#1021: fix a bug to allow basicConfig to accept NOTSET as a level.
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 4fd582c..39ffae7 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py
@@ -1247,7 +1247,7 @@ hdlr.setFormatter(fmt) root.addHandler(hdlr) level = kwargs.get("level") - if level: + if level is not None: root.setLevel(level) #---------------------------------------------------------------------------