From 3ce2352d1cb00beab680aeb2e96523988dad2f35 Mon Sep 17 00:00:00 2001 From: Essem Date: Mon, 9 Aug 2021 10:54:56 -0500 Subject: [PATCH] Log error/warn to stderr --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 68eb196..8486f9b 100644 --- a/app.js +++ b/app.js @@ -102,7 +102,7 @@ if (isMaster) { debug: 4 }, transports: [ - new winston.transports.Console({ format: winston.format.colorize({ all: true }) }), + new winston.transports.Console({ format: winston.format.colorize({ all: true }), stderrLevels: ["error", "warn"] }), new winston.transports.File({ filename: "logs/error.log", level: "error" }), new winston.transports.File({ filename: "logs/main.log" }) ],