Message157908
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")
>>> |
|
Date |
User |
Action |
Args |
2012-04-09 21:51:15 | desbma | set | recipients:
+ desbma |
2012-04-09 21:51:15 | desbma | set | messageid: <1334008275.31.0.522161663981.issue14539@psf.upfronthosting.co.za> |
2012-04-09 21:51:14 | desbma | link | issue14539 messages |
2012-04-09 21:51:14 | desbma | create | |
|