pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

Add a -q, --quiet option, and reduce the default level of verbosity.

Open nathanpeck opened this issue 13 years ago • 5 comments

pm2 is very verbose by default even without the -v, --verbose option. I feel that some of this default verbosity could be reduced and output only if the -v option is specified. Additionally, I feel pm2 needs a -q, --quiet option where it does not output to the console except in case of errors.

For an example of what I mean by reducing the default level of verbosity consider what happens when executing pm2 stopAll

$ pm2 stopAll
⌬ PM2 Stopping all processes
  ◡ Processing...

┌────────┬────┬─────┬────────┬───────────┬──────────────┬────────┬──────────┐
│ Script │ id │ PID │ status │ Restarted │ Last restart │ memory │ err logs │
└────────┴────┴─────┴────────┴───────────┴──────────────┴────────┴──────────┘

If pm2 stopped all processes then there shouldn't be any processes to list, and this process list below the command is useless nearly 100% of the time except perhaps if pm2 has a bug which caused a process to not be stopped.

This is just one example of where excessive console output could be trimmed out and only output if the user explicitly specifies the -v option.

What are your thoughts on this? Does anyone else agree? If so I may spend some time creating a less verbose fork and submit a pull request.

nathanpeck avatar Jul 25 '13 12:07 nathanpeck

Mmm yes would be nice but not critical for now, closing

Unitech avatar Jul 29 '13 08:07 Unitech

3 years later and here I am hoping for the same thing..

ryanjrose avatar Dec 15 '16 22:12 ryanjrose

PM2_SILENT=true pm2 <command>

Unitech avatar Dec 16 '16 11:12 Unitech

Ah, thats great! Thanks!

ryanjrose avatar Dec 16 '16 19:12 ryanjrose

3 years later and here I am hoping for the same thing..

4 years later i am wondering what is the issue when i only get this error: Deploy failed I think pm2 needs the oposite (more proper error logging than this..)

azarus avatar Jun 07 '17 21:06 azarus