Update 2026-06-23 10:27:47
This commit is contained in:
@@ -168,10 +168,10 @@ const logger = createLogger({
|
||||
],
|
||||
});
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (process.env.NODE_ENV !== 'production' || process.env.CONSOLE_LOG === 'true') {
|
||||
logger.add(new transports.Console({
|
||||
format: consoleFormat,
|
||||
level: 'debug',
|
||||
format: process.env.NODE_ENV === 'production' ? jsonFormat : consoleFormat,
|
||||
level: LOG_LEVEL,
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user