Removing spam of unauthorised traces from tests, may be causing stack overflow.
This commit is contained in:
parent
0074b0cb1f
commit
8ff88d028c
|
@ -72,7 +72,10 @@ router.use(async (ctx, next) => {
|
|||
error,
|
||||
}
|
||||
ctx.log.error(err)
|
||||
console.trace(err)
|
||||
// unauthorised errors don't provide a useful trace
|
||||
if (!env.isTest()) {
|
||||
console.trace(err)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue