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