Removing spam of unauthorised traces from tests, may be causing stack overflow.
This commit is contained in:
parent
02f6dcf01e
commit
abcb94f1a4
|
@ -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