Easy application logging/debugging with nginx, uwsgi, flask?

后端 未结 3 790
被撕碎了的回忆
被撕碎了的回忆 2021-02-05 04:06

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

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-05 04:32

    Set config['PROPAGATE_EXCEPTIONS'] to True when running app in production and you want tracebacks to be logged into log files. (I haven't tried with SMTP handler, though..)

提交回复
热议问题