有谁能告诉我怎么把烧瓶送到吉尼克恩原木上。
以下是我的代码
@app.route("/")
def home():
print "print statement"
return "<h1>hello World</h1>"Gunicorn命令
gunicorn test:app -b 0.0.0.0:5005 --access-logfile ./access.log --error-logfile error.log --log-file gunicorn.log --capture-output -R --reload但是,只有在我关闭应用程序之后,我才能在stdout in gunicorn.log。
[2018-12-03 11:27:39 -0500] [68235] [INFO] Starting gunicorn 19.9.0
[2018-12-03 11:27:39 -0500] [68235] [INFO] Listening at: http://0.0.0.0:5005 (68235)
[2018-12-03 11:27:39 -0500] [68235] [INFO] Using worker: sync
[2018-12-03 11:27:39 -0500] [68238] [INFO] Booting worker with pid: 68238
[2018-12-03 11:29:13 -0500] [68235] [INFO] Handling signal: int
[2018-12-03 11:29:14 -0500] [68238] [INFO] Worker exiting (pid: 68238)
print statement
print statement
print statement
[2018-12-03 11:29:14 -0500] [68235] [INFO] Shutting down: Master发布于 2018-12-03 16:48:54
使用print代替app.logger.info(<expr>)
https://stackoverflow.com/questions/53597983
复制相似问题