Skip to content

Commit aa28f52

Browse files
author
Matt Berther
committed
prevent timestamp flag from being always true
1 parent 5d99a8a commit aa28f52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var DailyRotateFile = module.exports = function (options) {
7272
this.label = options.label || null;
7373
this.prettyPrint = options.prettyPrint || false;
7474
this.showLevel = options.showLevel === undefined ? true : options.showLevel;
75-
this.timestamp = options.timestamp != null ? options.timestamp : true;
75+
this.timestamp = options.timestamp || null;
7676
this.datePattern = options.datePattern ? options.datePattern : '.yyyy-MM-dd';
7777
this.depth = options.depth || null;
7878
this.eol = options.eol || os.EOL;

test/simple.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ describe('winston/transports/daily-rotate-file', function () {
364364
filename: path.join(rotationLogPath, 'test-rotation.log'),
365365
datePattern: dailyRotationPattern.pattern,
366366
maxFiles: 2,
367-
maxsize: 100
367+
maxsize: 50
368368
});
369369

370370
done();

0 commit comments

Comments
 (0)