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

Too many logs are output at shutdown with graceful shutdown. #3524

Closed
KimSeongIl opened this issue Mar 8, 2018 · 1 comment
Closed

Too many logs are output at shutdown with graceful shutdown. #3524

KimSeongIl opened this issue Mar 8, 2018 · 1 comment

Comments

@KimSeongIl
Copy link
Contributor

KimSeongIl commented Mar 8, 2018

Your issue may already be reported!
Please search on the issue tracker before creating one.

What's going wrong?

Too many logs are output at shutdown.

How could we reproduce this issue?

Supporting information

Please run the following command (available on PM2 >= 2.6)

pm2 start app/main.js --no-daemon --kill-timeout=10000 -i 4

kill -15 <pm2 id>

PM2        | pid=4382 msg=failed to kill - retrying in 100ms
PM2        | pid=4399 msg=failed to kill - retrying in 100ms
PM2        | pid=4364 msg=failed to kill - retrying in 100ms
PM2        | pid=4365 msg=failed to kill - retrying in 100ms
PM2        | pid=4382 msg=failed to kill - retrying in 100ms
PM2        | pid=4399 msg=failed to kill - retrying in 100ms
PM2        | pid=4364 msg=failed to kill - retrying in 100ms
PM2        | pid=4365 msg=failed to kill - retrying in 100ms
PM2        | pid=4382 msg=failed to kill - retrying in 100ms
PM2        | pid=4399 msg=failed to kill - retrying in 100ms
PM2        | pid=4364 msg=failed to kill - retrying in 100ms
PM2        | pid=4365 msg=failed to kill - retrying in 100ms
...........
...........

Too many logs are output at shutdown.
How can I hide or delay the log?

The logs are very much output until the time set by kill-timeout.

@KimSeongIl KimSeongIl changed the title Too many logs are output at shutdown. Too many logs are output at shutdown with graceful shutdown. Mar 14, 2018
@wallet77
Copy link
Contributor

wallet77 commented Jul 4, 2018

PM2 3.0.0 has been released:

$ npm install pm2@latest -g
$ pm2 update

Be aware of breaking changes, especially drop support for node 0.12.
Full list here : https://github.com/Unitech/pm2/blob/master/CHANGELOG.md

@wallet77 wallet77 closed this as completed Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants