rotate() OR _setupNextRot() on start

master
Frankie O'Rourke 2016-03-31 15:31:39 -07:00 committed by Trent Mick
parent 306d8e12ee
commit 084f38c005
1 changed files with 2 additions and 1 deletions

View File

@ -1244,8 +1244,9 @@ RotatingFileStream = function RotatingFileStream(options) {
this.rotating = false;
if (rotateAfterOpen) {
this.rotate();
} else {
this._setupNextRot();
}
this._setupNextRot();
}
util.inherits(RotatingFileStream, EventEmitter);