Message141085
| 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: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 |
|