[issue12637] logging lastResort handler not ignoring messages less than WARNING

2011-07-25 Thread Xavier de Gaye

New submission from Xavier de Gaye xdeg...@gmail.com:

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


--
components: Library (Lib)
files: logging_lastResort.patch
keywords: patch
messages: 141085
nosy: xdegaye
priority: normal
severity: normal
status: open
title: logging lastResort handler not ignoring messages less than WARNING
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file22748/logging_lastResort.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12637
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12637] logging lastResort handler not ignoring messages less than WARNING

2011-07-25 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset d11a1a373f58 by Vinay Sajip in branch '3.2':
Fixes #12637: Last resort messages now correctly handled. Thanks to Xavier de 
Gaye for the patch.
http://hg.python.org/cpython/rev/d11a1a373f58

New changeset de13ce98ca3b by Vinay Sajip in branch 'default':
Fixes #12637: Merged fix from 3.2 and added test.
http://hg.python.org/cpython/rev/de13ce98ca3b

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12637
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12637] logging lastResort handler not ignoring messages less than WARNING

2011-07-25 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
assignee:  - vinay.sajip
nosy: +vinay.sajip
resolution:  - fixed
status: open - closed
versions: +Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12637
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com