Skip to content

Commit

Permalink
#281 PM2_SILENT + jlist will not print something else than JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Nov 22, 2016
1 parent 5624d00 commit beb6320
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- #2526 Expose .launchAll() method to API
- #2351 inner pm2 actions - drop autorestart and node_args options
- #2530 Make sure all processes are killed on system signal to PM2
- #281 allow to combine PM2_SILENT + pm2 jlist to avoid extra data
- Alias attributes error_file to err_file + err_log + err, alias out_file to out, out_log
- Do not ask for pass for set/multiset from KM

Expand Down
4 changes: 2 additions & 2 deletions lib/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -1383,10 +1383,10 @@ API.prototype.jlist = function(debug) {
}

if (debug) {
Common.printOut(util.inspect(list, false, null, false));
process.stdout.write(util.inspect(list, false, null, false));
}
else {
Common.printOut(JSON.stringify(list));
process.stdout.write(JSON.stringify(list));
}

that.exitCli(conf.SUCCESS_EXIT);
Expand Down

0 comments on commit beb6320

Please sign in to comment.