[issue9427] logging.error('...', exc_info=True) should display upper frames, too

Vinay Sajip report at bugs.python.org
Thu Aug 26 15:32:01 CEST 2010


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

This also happens on later versions. Since 2.x is essentially frozen, this feature request can't be implemented in 2.x, so recategorising as a Python 3.2 issue.

Here, a change in logging will either duplicate code in traceback.py or print the upper frames above the "Traceback (most recent call last):" line, which is not ideal.

The best way to implement in logging would be to wait for the implementation of the patch in #1553375, following which a change could be made in Formatter.formatException to invoke traceback.print_exception with the "fullstack" keyword parameter.

----------
type:  -> feature request
versions: +Python 3.2 -Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9427>
_______________________________________


More information about the Python-bugs-list mailing list