Skip to content

Commit

Permalink
fix: log level value should not be case sensitive (#2913)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed Aug 16, 2022
1 parent 004e1bb commit 6428b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/logger.ts
Expand Up @@ -26,7 +26,7 @@ const hformat = winston.format.printf(
);

const logger = winston.createLogger({
level: process.env.LOG_LEVEL || 'debug',
level: process.env.LOG_LEVEL?.toLowerCase() || 'debug',
format: winston.format.combine(
winston.format.splat(),
winston.format.timestamp(),
Expand Down

0 comments on commit 6428b8d

Please sign in to comment.