fix: [cherry-pick]Remove logging data when logging skip msg (#29708)

See also: #29696
pr: #29707

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
XuanYang-cn 2024-01-15 17:46:53 +08:00 committed by GitHub
parent 58b9b8fdba
commit 962b3ea5fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -915,7 +915,12 @@ func (ms *MqTtMsgStream) Seek(ctx context.Context, msgPositions []*msgpb.MsgPosi
})
ms.chanMsgBuf[consumer] = append(ms.chanMsgBuf[consumer], tsMsg)
} else {
log.Info("skip msg", zap.Any("msg", tsMsg))
log.Info("skip msg",
zap.Int64("source", tsMsg.SourceID()),
zap.String("type", tsMsg.Type().String()),
zap.Int("size", tsMsg.Size()),
zap.Any("position", tsMsg.Position()),
)
}
}
}