Skip to content

Commit 4b1d985

Browse files
bentruymantj
authored andcommitted
Fixed a check that was assuming a stream was defined on instantiation
1 parent 7c0bdaf commit 4b1d985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/log.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var Log = exports = module.exports = function Log(level, stream){
2424
if ('string' == typeof level) level = exports[level.toUpperCase()];
2525
this.level = level || exports.DEBUG;
2626
this.stream = stream || process.stdout;
27-
if (stream.readable) this.read();
27+
if (this.stream.readable) this.read();
2828
};
2929

3030
/**

0 commit comments

Comments
 (0)