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

后端 未结 3 849
被撕碎了的回忆
被撕碎了的回忆 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:40

    I know that this is a VERY old post, but I ran into the issue now, and it took me a bit to find the solution. Flask sends errors to the server. I was running Gunicorn with an upstart script on Ubuntu 14.04 LTS, and the place where I found the error logs was as follows:

    /var/log/upstart/myapp.log

    http://docs.gunicorn.org/en/stable/deploy.html#upstart

    Just in case some other poor soul ends up in this situation.

提交回复
热议问题