Skip to content

Commit edba550

Browse files
author
Arthur Cinader
authored
winston-daily-roate-file-1.4.2 makes a change where timestamp is not on by default anymore. (#3335)
see: winstonjs/winston-daily-rotate-file@aa28f52 pretty incredible that they would release this as a patch release, but my fix is solid and defensive chore(package): update winston-daily-rotate-file to version 1.4.2 https://greenkeeper.io/
1 parent c7775eb commit edba550

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"semver": "5.2.0",
4141
"tv4": "1.2.7",
4242
"winston": "2.3.0",
43-
"winston-daily-rotate-file": "1.4.1",
43+
"winston-daily-rotate-file": "1.4.2",
4444
"ws": "1.1.1"
4545
},
4646
"devDependencies": {

src/Adapters/Logger/WinstonLogger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ function updateTransports(options) {
2121
Object.assign({}, {
2222
filename: 'parse-server.info',
2323
name: 'parse-server',
24-
}, options));
24+
}, options, { timestamp: true }));
2525
transports['parse-server-error'] = new (DailyRotateFile)(
2626
Object.assign({}, {
2727
filename: 'parse-server.err',
2828
name: 'parse-server-error',
29-
}, options, { level: 'error'}));
29+
}, options, { level: 'error', timestamp: true }));
3030
}
3131

3232
transports.console = new (winston.transports.Console)(

0 commit comments

Comments
 (0)