From 2bcb3f4916468799c1b922ef24ac7cafa3bb0d19 Mon Sep 17 00:00:00 2001 From: xige-16 Date: Wed, 15 Sep 2021 22:17:49 +0800 Subject: [PATCH] Modify querycoord's log info (#8005) Signed-off-by: xige-16 --- internal/querycoord/impl.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/querycoord/impl.go b/internal/querycoord/impl.go index 5aae6b1d10..2a5a91d7fc 100644 --- a/internal/querycoord/impl.go +++ b/internal/querycoord/impl.go @@ -14,9 +14,6 @@ package querycoord import ( "context" "errors" - "fmt" - - "github.com/milvus-io/milvus/internal/util/metricsinfo" "go.uber.org/zap" @@ -25,6 +22,7 @@ import ( "github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/milvuspb" "github.com/milvus-io/milvus/internal/proto/querypb" + "github.com/milvus-io/milvus/internal/util/metricsinfo" ) func (qc *QueryCoord) GetComponentStates(ctx context.Context) (*internalpb.ComponentStates, error) { @@ -182,7 +180,7 @@ func (qc *QueryCoord) ReleaseCollection(ctx context.Context, req *querypb.Releas hasCollection := qc.meta.hasCollection(collectionID) if !hasCollection { - log.Warn("release collection end, query coordinator don't have the log of", zap.String("collectionID", fmt.Sprintln(collectionID))) + log.Warn("release collection end, query coordinator don't have the log of", zap.Int64("collectionID", collectionID)) return status, nil }