Fix test logs being written to file
This commit is contained in:
parent
4fb240b39a
commit
1aff3561ae
@ -4,8 +4,15 @@ export default winston.createLogger({
|
||||
level: 'debug',
|
||||
transports: [
|
||||
new winston.transports.Console(),
|
||||
new winston.transports.File({ filename: 'warn.log', level: 'warn' }),
|
||||
new winston.transports.File({ filename: 'combined.log' }),
|
||||
new winston.transports.File({
|
||||
filename: 'warn.log',
|
||||
level: 'warn',
|
||||
silent: process.env.NODE_ENV === 'test',
|
||||
}),
|
||||
new winston.transports.File({
|
||||
filename: 'combined.log',
|
||||
silent: process.env.NODE_ENV === 'test',
|
||||
}),
|
||||
],
|
||||
format: winston.format.combine(
|
||||
winston.format.colorize({ all: true }),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user