From 0a2436fbe7fe93d60a31eb89959797436210c722 Mon Sep 17 00:00:00 2001 From: XuanYang-cn Date: Tue, 25 Oct 2022 17:53:32 +0800 Subject: [PATCH] Remove meaningless logs (#20051) Fixes: #20050 Signed-off-by: yangxuan Signed-off-by: yangxuan --- internal/querynode/shard_cluster.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/querynode/shard_cluster.go b/internal/querynode/shard_cluster.go index 37d59da23c..f63c58f7de 100644 --- a/internal/querynode/shard_cluster.go +++ b/internal/querynode/shard_cluster.go @@ -986,7 +986,12 @@ func (sc *ShardCluster) Search(ctx context.Context, req *querypb.SearchRequest, wg.Wait() if err != nil { - log.Error("failed to do search", zap.Any("req", req), zap.Error(err)) + log.Error("failed to do search", + zap.Int64("msgID", req.GetReq().GetBase().GetMsgID()), + zap.Int64("sourceID", req.GetReq().GetBase().GetSourceID()), + zap.Strings("channels", req.GetDmlChannels()), + zap.Int64s("segmentIDs", req.GetSegmentIDs()), + zap.Error(err)) return nil, err }