Skip to content

Commit

Permalink
Fixed a check that was assuming a stream was defined on instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
bentruyman authored and tj committed Sep 26, 2010
1 parent 7c0bdaf commit 4b1d985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var Log = exports = module.exports = function Log(level, stream){
if ('string' == typeof level) level = exports[level.toUpperCase()];
this.level = level || exports.DEBUG;
this.stream = stream || process.stdout;
if (stream.readable) this.read();
if (this.stream.readable) this.read();
};

/**
Expand Down

0 comments on commit 4b1d985

Please sign in to comment.