This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Logging.basicConfig ignores level=0
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: vdham, vinay.sajip
Priority: normal Keywords:

Created on 2008-04-29 15:08 by vdham, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg65969 - (view) Author: Jeroen van der Ham (vdham) Date: 2008-04-29 15:08
logging.basicConfig seems to ignore level=0:

>>> import logging
>>> logging.basicConfig(level=0)
>>> logging.getLogger().getEffectiveLevel()
30


>>> import logging
>>> logging.basicConfig(level=10)
>>> logging.getLogger().getEffectiveLevel()
10
msg65970 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2008-04-29 15:14
Already fixed in SVN.

Change was: "if level:" -> "if level is not None:" in basicConfig().
History
Date User Action Args
2022-04-11 14:56:33adminsetgithub: 46970
2008-04-29 15:15:01vinay.sajipsetstatus: open -> closed
resolution: duplicate
messages: + msg65970
nosy: + vinay.sajip
2008-04-29 15:08:33vdhamcreate