rotate() OR _setupNextRot() on start
This commit is contained in:
parent
306d8e12ee
commit
084f38c005
1 changed files with 2 additions and 1 deletions
|
@ -1244,8 +1244,9 @@ RotatingFileStream = function RotatingFileStream(options) {
|
|||
this.rotating = false;
|
||||
if (rotateAfterOpen) {
|
||||
this.rotate();
|
||||
} else {
|
||||
this._setupNextRot();
|
||||
}
|
||||
this._setupNextRot();
|
||||
}
|
||||
|
||||
util.inherits(RotatingFileStream, EventEmitter);
|
||||
|
|
Loading…
Reference in a new issue