I am using AWS and use AWS cloudwatch to view logs. While things should not break on AWS, they could. I just had such a case. Then I searched for Traceback and
Traceback
A slight variation: If you run a Flask application, you can do this:
@app.errorhandler(Exception) def exception_logger(error): """Log the exception.""" logger.exception(str(error)) return str(error)