logger: fix stream.

This commit is contained in:
Christopher Jeffrey 2017-01-16 14:07:56 -08:00
parent e712b27ee9
commit 48399bb0cb
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -349,15 +349,15 @@ Logger.prototype.getStream = function getStream() {
if (this.closed)
return;
if (this.stream)
return this.stream;
if (!this.filename)
return;
if (fs.unsupported)
return;
if (this.stream)
return this.stream;
if (this.lastFail > util.now() - 10)
return;