From 084f38c005a56478e1ac4b08fcb778c2040e5729 Mon Sep 17 00:00:00 2001 From: Frankie O'Rourke Date: Thu, 31 Mar 2016 15:31:39 -0700 Subject: [PATCH] rotate() OR _setupNextRot() on start --- lib/bunyan.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);