diff --git a/lib/bunyan.js b/lib/bunyan.js index f7280b9..28553ed 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -1244,8 +1244,9 @@ RotatingFileStream = function RotatingFileStream(options) { this.rotating = false; if (rotateAfterOpen) { this.rotate(); + } else { + this._setupNextRot(); } - this._setupNextRot(); } util.inherits(RotatingFileStream, EventEmitter);