Modify querycoord's log info (#8005)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2021-09-15 22:17:49 +08:00 committed by GitHub
parent 8fb961a0b0
commit 2bcb3f4916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}