core/config: remove colorize() from logger
This commit is contained in:
parent
38a1503533
commit
bbc1ce990c
@ -191,7 +191,7 @@ export class Config {
|
|||||||
this.log_level = json.log_level || 'info';
|
this.log_level = json.log_level || 'info';
|
||||||
this.log_max_days = json.log_max_days || null;
|
this.log_max_days = json.log_max_days || null;
|
||||||
|
|
||||||
const { transports, format: { printf, combine, timestamp, splat, colorize, prettyPrint } } = winston;
|
const { transports, format: { printf, combine, timestamp, splat, prettyPrint } } = winston;
|
||||||
const trans = [new transports.Console()];
|
const trans = [new transports.Console()];
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== 'test') {
|
if (process.env.NODE_ENV !== 'test') {
|
||||||
@ -208,7 +208,8 @@ export class Config {
|
|||||||
format: combine(
|
format: combine(
|
||||||
timestamp(),
|
timestamp(),
|
||||||
splat(),
|
splat(),
|
||||||
colorize(),
|
// TODO: Enable coloring. Currently we have to prevent dumping color characters in log files.
|
||||||
|
// colorize(),
|
||||||
prettyPrint(),
|
prettyPrint(),
|
||||||
printf((info) => `${info.timestamp} - ${info.level}: ${info.message}`)
|
printf((info) => `${info.timestamp} - ${info.level}: ${info.message}`)
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user