Where did my Python prints get with Flask deployed under nginx using uWSGI?

Following this tutorial, I just installed nginx with uWSGI to serve my site, which I built in Flask , and now everything is working fine.

I sometimes want to debug something for which I usually use basic instructions printin code. Sorry, I have no idea where the print result is?

I linked the following log files, but I do not see the print there:

/var/log/uwsgi/emperor.log
/var/log/uwsgi/myapp_uwsgi.log
/var/log/nginx/access.log
/var/log/nginx/error.log

Does anyone know where I can see the result of prints?

+4
source share
1 answer

stdout Nginx stderr.

app.logger. http://flask.pocoo.org/docs/0.10/errorhandling/

+2

Source: https://habr.com/ru/post/1613389/


All Articles