linux - Where do my Python prints got with Flask deployed under nginx with uWSGI? -


following this tutorial i've setup nginx uwsgi serve website built in flask, , things work fine now.

i want debug use basic print statements in code. unfortunately have no idea result of these print's go?

i've tailed following log files, don't see print's in there:

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

does know can see result of prints?

normal print goes on stdout , nginx log stderr.

you should use app.logger module of flask instead. have @ http://flask.pocoo.org/docs/0.10/errorhandling/


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -