diff --git a/packages/server/src/api/index.js b/packages/server/src/api/index.js index ec6ad951f9..f72b959eea 100644 --- a/packages/server/src/api/index.js +++ b/packages/server/src/api/index.js @@ -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) + } } })