This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author guettli
Recipients guettli
Date 2010-07-30.11:25:46
SpamBayes Score 0.0019043131
Marked as misclassified No
Message-id <1280489148.4.0.967800282636.issue9427@psf.upfronthosting.co.za>
In-reply-to
Content
logging.error('...', exc_info=True) only displays the
frames downward. But I often need the upper frames, to debug a problem.

This example shows, that you don't see the "upper" frame in the stactrace. But that's information is important.

<pre>
import logging

def foo():
    try:
        raise Exception()
    except Exception, exc:
        logging.error('Exception occured: %s' % exc, exc_info=True)

def upper():
    foo()
upper()
</pre>

<pre>
===> python tmp/t.py
ERROR:root:Exception occured: 
Traceback (most recent call last):
  File "tmp/t.py", line 6, in foo
    raise Exception()
Exception
</pre>
History
Date User Action Args
2010-07-30 11:25:48guettlisetrecipients: + guettli
2010-07-30 11:25:48guettlisetmessageid: <1280489148.4.0.967800282636.issue9427@psf.upfronthosting.co.za>
2010-07-30 11:25:47guettlilinkissue9427 messages
2010-07-30 11:25:46guettlicreate