未验证 提交 0f2c3ac8 编写于 作者: J Jiquan Long 提交者: GitHub

Optimize log (#23121)

Signed-off-by: Nlongjiquan <jiquan.long@zilliz.com>
上级 66f50fd3
......@@ -115,7 +115,7 @@ func (dn *deleteNode) Operate(in []Msg) []Msg {
// process flush messages
if len(fgMsg.segmentsToSync) > 0 {
log.Debug("DeleteNode receives flush message",
log.Info("DeleteNode receives flush message",
zap.Int64s("segIDs", fgMsg.segmentsToSync),
zap.String("vChannelName", dn.channelName),
zap.Time("posTime", tsoutil.PhysicalTime(fgMsg.endPositions[0].Timestamp)))
......
......@@ -7,10 +7,8 @@ import (
"github.com/milvus-io/milvus-proto/go-api/milvuspb"
"github.com/milvus-io/milvus-proto/go-api/schemapb"
"github.com/milvus-io/milvus/internal/common"
"github.com/milvus-io/milvus/internal/log"
"github.com/milvus-io/milvus/internal/proto/internalpb"
"github.com/milvus-io/milvus/internal/util/typeutil"
"go.uber.org/zap"
)
type defaultLimitReducer struct {
......@@ -36,7 +34,6 @@ func (r *defaultLimitReducer) Reduce(results []*internalpb.RetrieveResults) (*mi
func (r *defaultLimitReducer) afterReduce(result *milvuspb.QueryResults) error {
collectionName := r.collectionName
ctx := r.ctx
schema := r.schema
outputFieldsID := r.req.GetOutputFieldsId()
......@@ -47,8 +44,6 @@ func (r *defaultLimitReducer) afterReduce(result *milvuspb.QueryResults) error {
ErrorCode: commonpb.ErrorCode_Success,
}
} else {
log.Ctx(ctx).Warn("Query result is nil",
zap.Any("requestType", "query"))
result.Status = &commonpb.Status{
ErrorCode: commonpb.ErrorCode_EmptyCollection,
Reason: "empty collection", // TODO
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册