Disable colorized logging, fix production check

This commit is contained in:
2023-11-15 17:10:18 -06:00
parent e9d9fff5a8
commit 48d5f0b3f9

View File

@@ -23,7 +23,7 @@ const logger: Logger = createLogger({
}),
new transports.Console({
format: format.combine(
format.colorize(),
env.NODE_ENV == 'production' ? format.json() : format.colorize(),
format.printf(
({ level, message, timestamp, stack }) =>
`${timestamp} ${level}: ${stack || message}`