I have some code written in python flask, where I have a function as follows:
@app.errorhandler(500)
def internal_error(exception):
print "500 error caught"
But this message is not sufficient enough to provide me with enough information. I just want to print the traceback for the exception that is passed to errorhandler. Is there any way to do this simple thing?