Message141085
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')
>>> |
|
Date |
User |
Action |
Args |
2011-07-25 11:04:21 | xdegaye | set | recipients:
+ xdegaye |
2011-07-25 11:04:21 | xdegaye | set | messageid: <1311591861.64.0.698091326071.issue12637@psf.upfronthosting.co.za> |
2011-07-25 11:04:21 | xdegaye | link | issue12637 messages |
2011-07-25 11:04:20 | xdegaye | create | |
|