Fix file logger creation

This commit is contained in:
Quentin Duchemin 2020-01-08 00:27:18 +01:00
parent d06875cdd3
commit 769fb9f084
No known key found for this signature in database
GPG Key ID: 0547178FEEDE7D6B

View File

@ -49,7 +49,7 @@ logger.setupFileLogger = function setupFileLogger() {
// Check first if the configured path is writable and only then
// instantiate the file logging transport
if (fs.openSync(fileLoggerTransport.filename, 'a+')) {
logger.add(new winston.transports.File(), fileLoggerTransport);
logger.add(new winston.transports.File(fileLoggerTransport));
}
return true;