Merge pull request #67 from Chostakovitch/master

Fix file logger creation
This commit is contained in:
Michael Schramm 2020-04-12 18:14:37 +02:00 committed by GitHub
commit 2db7403e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;