Removing spam of unauthorised traces from tests, may be causing stack overflow.

This commit is contained in:
mike12345567 2022-07-04 16:34:59 +01:00
parent 02f6dcf01e
commit abcb94f1a4
1 changed files with 4 additions and 1 deletions

View File

@ -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)
}
}
})