1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

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

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