mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
do not colorize or pretty print logs in production
This commit is contained in:
parent
2ca52785e1
commit
c7d3539815
1 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ const logger = new winston.Logger();
|
|||
if (IS_PROD) {
|
||||
if (ENABLE_CONSOLE_LOGS_IN_PROD) {
|
||||
logger.add(winston.transports.Console, {
|
||||
colorize: IS_PROD ? false : true,
|
||||
prettyPrint: true,
|
||||
colorize: false,
|
||||
prettyPrint: false,
|
||||
});
|
||||
}
|
||||
} else if (IS_TEST) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue