increase apollo slowlog threshold
This commit is contained in:
parent
e1c51075a2
commit
c7e2623461
|
@ -22,7 +22,7 @@ const apolloServer = new ApolloServer({
|
|||
return (error, result) => {
|
||||
const end = process.hrtime.bigint()
|
||||
const ms = (end - start) / 1000000n
|
||||
if (ms > 5) {
|
||||
if (ms > 50) {
|
||||
console.log(`Field ${info.parentType.name}.${info.fieldName} took ${ms}ms`)
|
||||
}
|
||||
if (error) {
|
||||
|
|
Loading…
Reference in New Issue