From ce696da495e3d7d3d91c7a6ed4ee72d464a37083 Mon Sep 17 00:00:00 2001 From: Evgenii Abramov Date: Sun, 16 May 2021 18:57:35 +0300 Subject: [PATCH] c --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 945cc21..d52a987 100644 --- a/app.js +++ b/app.js @@ -5,6 +5,7 @@ const path = require('path'); /* */ const {createLogger, format, transports} = require('winston'); const {combine, timestamp, printf} = format; +var nullTransport = require('winston-null'); /* express and https */ const ejs = require('ejs'); const express = require('express'); @@ -36,7 +37,7 @@ global.logger = createLogger({ return `${timestamp} ${level}: ${message}`; }) ), - transports: [], + transports: [nullTransport], }); if (clArgv.indexOf('--log-info') > -1) global.logger.add(new transports.Console());