From 7dfde13ac328ae1e8aa15252fddfa9dc85a7e768 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Fri, 16 Jan 2015 22:31:44 -0800 Subject: [PATCH] Correct error added in commit d77f8247 Also, bump minor ver for `-L` CLI addition and coming release. --- CHANGES.md | 2 +- lib/bunyan.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 8d1a82b..d95a499 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,7 +6,7 @@ Known issues: bug](https://github.com/TooTallNate/node-gyp/issues/65). -## bunyan 1.2.5 (not yet released) +## bunyan 1.3.0 (not yet released) - [issue #103] `bunyan -L` (or `bunyan --time local`) to show local time. Bunyan log records store `time` in UTC time. Sometimes it is convenient diff --git a/lib/bunyan.js b/lib/bunyan.js index 8ee1361..875504e 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -1051,12 +1051,12 @@ function RotatingFileStream(options) { this.stream = fs.createWriteStream(this.path, {flags: 'a', encoding: 'utf8'}); this.count = (options.count == null ? 10 : options.count); - assert.equal(typeof (self.count), 'number', + assert.equal(typeof (this.count), 'number', format('rotating-file stream "count" is not a number: %j (%s) in %j', - self.count, typeof(self.count), self)); - assert.ok(self.count >= 0, + this.count, typeof(this.count), this)); + assert.ok(this.count >= 0, format('rotating-file stream "count" is not >= 0: %j in %j', - self.count, self)); + this.count, this)); // Parse `options.period`. if (options.period) {