mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-25 23:25:51 +00:00
fix error messages in console
This commit is contained in:
parent
362313fe0a
commit
c91c152b53
1 changed files with 12 additions and 5 deletions
|
|
@ -38,12 +38,19 @@ if (IS_PROD) {
|
|||
.add(new winston.transports.Console({
|
||||
level: 'warn', // warn and errors always in JSON
|
||||
format: winston.format.combine(
|
||||
winston.format.timestamp(),
|
||||
winston.format.colorize(),
|
||||
winston.format.prettyPrint(),
|
||||
winston.format(info => {
|
||||
console.log(info);
|
||||
})(),
|
||||
winston.format.timestamp(),
|
||||
winston.format.printf(
|
||||
info => `${info.timestamp} - ${info.level} ${info.message}`,
|
||||
),
|
||||
),
|
||||
}))
|
||||
.add(new winston.transports.Console({
|
||||
level: 'warn', // warn and errors always in JSON
|
||||
format: winston.format.combine(
|
||||
winston.format.prettyPrint({
|
||||
colorize: true,
|
||||
}),
|
||||
),
|
||||
}))
|
||||
.add(new winston.transports.Console({
|
||||
|
|
|
|||
Loading…
Reference in a new issue