【发布时间】:2016-01-27 07:06:52
【问题描述】:
在this tutorial 之后,我刚刚设置nginx 和uWSGI 来服务我在Flask 中构建的网站,现在一切正常。
我有时想调试一些我通常在代码中使用基本print 语句的东西。不幸的是,我不知道这些打印的结果去哪里了?
我已经跟踪了以下日志文件,但我没有在其中看到打印内容:
/var/log/uwsgi/emperor.log
/var/log/uwsgi/myapp_uwsgi.log
/var/log/nginx/access.log
/var/log/nginx/error.log
有人知道我在哪里可以看到打印结果吗?
【问题讨论】:
-
只需设置日志记录flask.pocoo.org/docs/0.10/errorhandling 并使用
current_app.logger.debug进行调试。
标签: python linux nginx flask uwsgi