From b3e06b2b61190da8f80b19c84d21682d98ecff3c Mon Sep 17 00:00:00 2001 From: Evgenii Abramov Date: Sun, 16 May 2021 19:02:56 +0300 Subject: [PATCH] c --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 72f4c2c..04e9d33 100644 --- a/app.js +++ b/app.js @@ -5,7 +5,7 @@ const path = require('path'); /* */ const {createLogger, format, transports} = require('winston'); const {combine, timestamp, printf} = format; -const {NullTransport: nullTransport} = require('winston-null'); +const NullTransport = require('winston-null'); /* express and https */ const ejs = require('ejs'); const express = require('express'); @@ -37,7 +37,7 @@ global.logger = createLogger({ return `${timestamp} ${level}: ${message}`; }) ), - transports: [nullTransport], + transports: [NullTransport], }); if (clArgv.indexOf('--log-info') > -1) global.logger.add(new transports.Console());