log file name is change when reload my app
Open
Nobody has claimed this yet.
SYS : Log
T: Bug
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
If reporting a bug, please use the following template.
Expected behaviour
log file name always be same
Actual behaviour
log file name is diffrent
Steps to reproduce
- start my app with
instances: 2and the log file name is
app-out-0.log
app-out-1.log
- reload app and the log file name change to
app-out.log
Software versions used
OS : centos 6.5
node.js : 4.4.7
PM2 : 1.1.3
PM2 Log output
Use the command: tail --lines 50 ~/.pm2/pm2.log
2016-12-26 17:56:54: Starting execution sequence in -cluster mode- for app name:midway-lsapp id:55
2016-12-26 17:56:55: App name:midway-lsapp id:55 online
2016-12-26 17:56:55: Starting execution sequence in -cluster mode- for app name:midway-lsapp id:56
2016-12-26 17:56:55: App name:midway-lsapp id:56 online
2016-12-26 17:59:12: Starting execution sequence in -cluster mode- for app name:midway-lsapp id:55
2016-12-26 17:59:12: App name:midway-lsapp id:55 online
2016-12-26 17:59:13: -reload- New worker listening
2016-12-26 17:59:13: Stopping app:midway-lsapp id:_old_55
2016-12-26 17:59:13: Starting execution sequence in -cluster mode- for app name:midway-lsapp id:56
2016-12-26 17:59:13: App name:midway-lsapp id:56 online
2016-12-26 17:59:14: -reload- New worker listening
2016-12-26 17:59:14: Stopping app:midway-lsapp id:_old_56
cf CONTRIBUTING.md for more informations
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read CONTRIBUTING.md, then reproduce the reload with instances: 2 and inspect the command output in ~/.pm2/pm2.log. Compare the initial app-out-0.log and app-out-1.log names with the post-reload app-out.log result; done means reload preserves the per-instance log filenames.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100