-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
PM2 Does not capture Python stdout #3076
Comments
Having the same problem with long running python scripts. I get the output if the script terminates on its own, but there is no output if it is a long running script. Try
PM2 2.9.3 |
PYTHONUNBUFFERED=x |
fixed, it will land on next release |
It has been fixed and landed on the latest pm2 version, check it out: npm install pm2 -g
pm2 update Also checkout this article about the support of PM2 for Python: https://blog.pm2.io/managing-python-application-with-pm2/ |
What's going wrong?
When using PM2 to run a Python application none of the stdout from print or etc is captured to the log files.
How could we reproduce this issue?
Run a Python script such as
print('test')
with pm2 start test.py --interpreter python3.6then pm2 logs
Supporting information
Please run the following command (available on PM2 >= 2.6)
The text was updated successfully, but these errors were encountered: