Skip to content

Commit

Permalink
Merge pull request #911 from Tjatse/master
Browse files Browse the repository at this point in the history
fixes #906
  • Loading branch information
Tjatse committed Dec 31, 2014
2 parents e9a69fe + 6ac15c3 commit bc404c8
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 bc404c8

Please sign in to comment.