diff --git a/lib/node/logger.js b/lib/node/logger.js index 75dee264..1388c284 100644 --- a/lib/node/logger.js +++ b/lib/node/logger.js @@ -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;