I\'m not looking to turn on the dangerous debugging console, but my application is getting a 500 error and doesn\'t seem to be writing any output for me to investigate more deep
if __name__ == '__main__'
clause, i.e. your main entry point. I assume that would be run.py
.nginx
level.Update: You might want to have an exception clause that covers uncaught exceptions, e.g.
if __name__ == '__main__':
try:
app.run(debug=True)
except Exception:
app.logger.exception('Failed')
which should write the traceback of any exception which occurred in app.run()
to the log.