Traceback not formatting properly
When you print out the traceback you do it by looping through the lines of code and printing out the lines and the local variables at the time. Is there a way you can print out the traceback using the built in python functionality?
Comments (5)
-
repo owner -
reporter I was just wondering if there was a way for the stack trace to be displayed like all the other tracebacks on django.
-
repo owner You mean like the html emails that it sends?
-
reporter Not really, more importantly, after spulec (a coworker of mine) implemented the logger functionality, when we use dogslow with sentry (https://github.com/dcramer/django-sentry), it would be nice to have the html be formatted properly like all other django tracebacks. This should be possible in sentry since it is able to display errors that it logs with the proper django formatting.
-
repo owner - changed status to duplicate
- Log in to comment
IIRC the traceback module operates on traceback objects only, while we use frame objects. traceback instances are creates when an exception is raised, but in our case however, there is no exception. The dogslow watchdog thread inspects the running request thread without disturbing it and so without triggering it to raise an exception.
Cheers, Erik