mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
Cherry pick from master pr: #29143 See also #29113 Using zap.Stringer log field will evaluate log field value only when log level meets the configuration, which could save some CPU time in search route Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
76757e53c4
commit
78865c02e1
@ -317,7 +317,7 @@ func (sa *segIDAssigner) syncSegments() (bool, error) {
|
||||
strconv.FormatInt(paramtable.GetNodeID(), 10)).Observe(float64(len(sa.segReqs)))
|
||||
sa.segReqs = nil
|
||||
|
||||
log.Debug("syncSegments call dataCoord.AssignSegmentID", zap.String("request", req.String()))
|
||||
log.Debug("syncSegments call dataCoord.AssignSegmentID", zap.Stringer("request", req))
|
||||
|
||||
resp, err := sa.dataCoord.AssignSegmentID(context.Background(), req)
|
||||
if err != nil {
|
||||
|
||||
@ -349,7 +349,7 @@ func (t *searchTask) PreExecute(ctx context.Context) error {
|
||||
|
||||
log.Debug("Proxy::searchTask::PreExecute",
|
||||
zap.Int64s("plan.OutputFieldIds", plan.GetOutputFieldIds()),
|
||||
zap.String("plan", plan.String())) // may be very large if large term passed.
|
||||
zap.Stringer("plan", plan)) // may be very large if large term passed.
|
||||
}
|
||||
|
||||
// translate partition name to partition ids. Use regex-pattern to match partition name.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user