Skip to content
This repository has been archived by the owner on Mar 18, 2018. It is now read-only.

Commit

Permalink
Fix EventListener warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jun 26, 2014
1 parent faa527c commit 51933cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/shipit.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ function Shipit(options) {
logger: console
});

if (this.options.stdout === process.stdout)
process.stdout.setMaxListeners(100);

if (this.options.stderr === process.stderr)
process.stderr.setMaxListeners(100);

// Inherits from EventEmitter
events.EventEmitter.call(this);
}
Expand Down

0 comments on commit 51933cd

Please sign in to comment.