Message180064
The reason why this happens in python 3.3.0 and not in 3.2:
1) lastResort holds a reference to an instance of _StderrHandler at
module tear down, thus potentially triggering a TypeError in
_removeHandlerRef.
2) The logging code has the following two lines that are meant to
avoid the occurence of this problem:
_defaultLastResort = _StderrHandler(WARNING)
lastResort = _defaultLastResort
Issue 12637 describes another unrelated problem with lastResort in
python 3.2. As a workaround to this issue 12637, my application sets
lastResort to None and this works fine in 3.2 (the logging howto
states 'To obtain the pre-3.2 behaviour, logging.lastResort can be set
to None'). With python 3.3 it is this setting of lastResort to None
that causes these spurious 'exception ignored' messages, after
removing this setting no messages are printed anymore. |
|
Date |
User |
Action |
Args |
2013-01-15 23:08:31 | xdegaye | set | recipients:
+ xdegaye, vinay.sajip, flox, gz, python-dev |
2013-01-15 23:08:31 | xdegaye | set | messageid: <1358291311.0.0.57138795794.issue9501@psf.upfronthosting.co.za> |
2013-01-15 23:08:30 | xdegaye | link | issue9501 messages |
2013-01-15 23:08:30 | xdegaye | create | |
|