[issue14539] logging module: logger does not print log message with logging.INFO level

zodalahtathi report at bugs.python.org
Mon Apr 9 23:51:15 CEST 2012


New submission from zodalahtathi <M8R-a7044e at mailinator.com>:

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")
>>>

----------
messages: 157908
nosy: zodalahtathi
priority: normal
severity: normal
status: open
title: logging module: logger does not print log message with logging.INFO level
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14539>
_______________________________________


More information about the Python-bugs-list mailing list