Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supervisor捕获不到python的Print #81

Open
m17y opened this issue Oct 30, 2018 · 0 comments
Open

Supervisor捕获不到python的Print #81

m17y opened this issue Oct 30, 2018 · 0 comments
Labels

Comments

@m17y
Copy link
Owner

m17y commented Oct 30, 2018

部署项目因为要记录文件log又不想改动代码,然后发现了这个问题。
解决方法:python -u xxx.py启动代码

super默认会捕获 std.err 到log 标准输出则不会
python中标准错误(std.err)和标准输出(std.out)的输出规则(标准输出默认需要缓存后再输出到屏幕,而标准错误则直接打印到屏幕)

@m17y m17y added the python label Mar 21, 2019
m17y pushed a commit that referenced this issue Mar 29, 2023
* Improve support for deploying in out-of-tree locations

* Document how to deploy in an out-of-tree location

* Add vendor to excludes in _config.yml

* Update README.md

Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant