Correct error added in commit d77f8247

Also, bump minor ver for `-L` CLI addition and coming release.
master
Trent Mick 2015-01-16 22:31:44 -08:00
parent 978a2439a3
commit 7dfde13ac3
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

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