Log optimized search params (#23930)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/23962/head
yihao.dai 2023-05-09 10:12:42 +08:00 committed by GitHub
parent a933b595c4
commit 426ed30d2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ func (node *QueryNode) optimizeSearchParams(ctx context.Context, req *querypb.Se
return req, nil
}
log := log.Ctx(ctx)
log := log.Ctx(ctx).With(zap.Int64("collection", req.GetReq().GetCollectionID()))
serializedPlan := req.GetReq().GetSerializedExprPlan()
// plan not found
@ -315,7 +315,7 @@ func (node *QueryNode) optimizeSearchParams(ctx context.Context, req *querypb.Se
return nil, merr.WrapErrParameterInvalid("marshalable search plan", "plan with marshal error", err.Error())
}
req.Req.SerializedExprPlan = serializedExprPlan
log.Debug("optimized search params done", zap.Any("queryInfo", queryInfo))
default:
log.Warn("not supported node type", zap.String("nodeType", fmt.Sprintf("%T", plan.GetNode())))
}