logger: fix stream.
This commit is contained in:
parent
e712b27ee9
commit
48399bb0cb
@ -349,15 +349,15 @@ Logger.prototype.getStream = function getStream() {
|
|||||||
if (this.closed)
|
if (this.closed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (this.stream)
|
||||||
|
return this.stream;
|
||||||
|
|
||||||
if (!this.filename)
|
if (!this.filename)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (fs.unsupported)
|
if (fs.unsupported)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (this.stream)
|
|
||||||
return this.stream;
|
|
||||||
|
|
||||||
if (this.lastFail > util.now() - 10)
|
if (this.lastFail > util.now() - 10)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user