fix: log level value should not be case sensitive (#2913)

pull/2912/head^2
TheCatLady 2 years ago committed by GitHub
parent 004e1bb17e
commit 6428b8d419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,7 +26,7 @@ const hformat = winston.format.printf(
); );
const logger = winston.createLogger({ const logger = winston.createLogger({
level: process.env.LOG_LEVEL || 'debug', level: process.env.LOG_LEVEL?.toLowerCase() || 'debug',
format: winston.format.combine( format: winston.format.combine(
winston.format.splat(), winston.format.splat(),
winston.format.timestamp(), winston.format.timestamp(),

Loading…
Cancel
Save