rotate() OR _setupNextRot() on start

This commit is contained in:
Frankie O'Rourke 2016-03-31 15:31:39 -07:00 committed by Trent Mick
parent 306d8e12ee
commit 084f38c005

View file

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