Skip to content

Commit a3ea5a4

Browse files
committed
Remove planning time log warning
1 parent 714073f commit a3ea5a4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

router/core/graphql_prehandler.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,17 +1020,6 @@ func (h *PreHandler) handleOperation(req *http.Request, variablesParser *astjson
10201020

10211021
requestContext.telemetry.ReleaseAttributes(&planningAttrs)
10221022

1023-
if requestContext.operation.planningTime > 4*time.Second {
1024-
h.log.Warn("Planning time exceeded threshold",
1025-
zap.Duration("planning_time", requestContext.operation.planningTime),
1026-
zap.String("operation_id", requestContext.operation.name),
1027-
zap.String("operation_type", requestContext.operation.opType),
1028-
zap.String("operation_client", requestContext.operation.clientInfo.Name),
1029-
zap.String("operation_client_version", requestContext.operation.clientInfo.Version),
1030-
zap.String("operation_content", requestContext.operation.content),
1031-
)
1032-
}
1033-
10341023
// we could log the query plan only if query plans are calculated
10351024
if (h.queryPlansEnabled && requestContext.operation.executionOptions.IncludeQueryPlanInResponse) ||
10361025
h.alwaysIncludeQueryPlan {

0 commit comments

Comments
 (0)