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 xdegaye
Recipients xdegaye
Date 2011-07-25.11:04:20
SpamBayes Score 2.9022476e-06
Marked as misclassified No
Message-id <1311591861.64.0.698091326071.issue12637@psf.upfronthosting.co.za>
In-reply-to
Content
The 'Advanced Logging Tutorial' states about the lastResort handler:
"The handler’s level is set to WARNING, so all events at this and
greater severities will be output."

Python 3.2 does not follow this behavior:

Python 3.2 (r32:88445, Jun 18 2011, 20:30:18)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> root = logging.getLogger()
>>> root.setLevel('DEBUG')
>>> root.warning('warning msg')
warning msg
>>> root.debug('debug msg')
debug msg
>>> 

This is fixed with the attached patch:

Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> root = logging.getLogger()
>>> root.setLevel('DEBUG')
>>> root.warning('warning msg')
warning msg
>>> root.debug('debug msg')
>>>
History
Date User Action Args
2011-07-25 11:04:21xdegayesetrecipients: + xdegaye
2011-07-25 11:04:21xdegayesetmessageid: <1311591861.64.0.698091326071.issue12637@psf.upfronthosting.co.za>
2011-07-25 11:04:21xdegayelinkissue12637 messages
2011-07-25 11:04:20xdegayecreate