Log error/warn to stderr

This commit is contained in:
Essem 2021-08-09 10:54:56 -05:00
parent cd469667cb
commit 3ce2352d1c
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -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" })
],