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) {