Skip to content

Commit

Permalink
fixes #906
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjatse committed Dec 30, 2014
1 parent cc8c79c commit 6ac15c3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/pm2
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ commander.on('--help', function() {
});

if (process.argv.indexOf('-s') > -1) {
global.console = {};
global.console.log = function(){};
global.console.error = function(){};
for(var key in console){
var code = key.charCodeAt(0);
if(code >= 97 && code <= 122){
console[key] = function(){};
}
}
}

function beginCommandProcessing() {
Expand Down

0 comments on commit 6ac15c3

Please sign in to comment.