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.

Author desbma
Recipients desbma
Date 2012-04-09.21:51:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334008275.31.0.522161663981.issue14539@psf.upfronthosting.co.za>
In-reply-to
Content
The logging module does not print logging message when the logging level is set to a level inferior to the default level.
I can reproduce it using the Python3 (3.2.2) package from Ubuntu 12.04 beta2, or using a hand compiled Python 3.2.2. The bug is NOT present in Python 3.2.1.

~ $ python3
Python 3.2.3rc2 (default, Mar 21 2012, 16:59:51) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logger = logging.getLogger()
>>> logger.getEffectiveLevel() <= logging.WARN
True
>>> logger.warn("warning message")
warning message
>>> logger.setLevel(logging.INFO)
>>> logger.getEffectiveLevel() <= logging.INFO
True
>>> logger.info("info message")
>>>
History
Date User Action Args
2012-04-09 21:51:15desbmasetrecipients: + desbma
2012-04-09 21:51:15desbmasetmessageid: <1334008275.31.0.522161663981.issue14539@psf.upfronthosting.co.za>
2012-04-09 21:51:14desbmalinkissue14539 messages
2012-04-09 21:51:14desbmacreate