mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comment for MarshalLogObject (#9920)
Signed-off-by: sunby <bingyi.sun@zilliz.com>pull/9684/head
parent
3a6f6d399f
commit
003a7ed7cc
|
@ -295,6 +295,7 @@ func parseNodeID(key string) (int64, error) {
|
||||||
// ChannelOpTypeNames implements zap log marshaler for ChannelOpSet
|
// ChannelOpTypeNames implements zap log marshaler for ChannelOpSet
|
||||||
var ChannelOpTypeNames = []string{"Add", "Delete"}
|
var ChannelOpTypeNames = []string{"Add", "Delete"}
|
||||||
|
|
||||||
|
// MarshalLogObject implements the interface ObjectMarshaler
|
||||||
func (cu *ChannelOp) MarshalLogObject(enc zapcore.ObjectEncoder) error {
|
func (cu *ChannelOp) MarshalLogObject(enc zapcore.ObjectEncoder) error {
|
||||||
enc.AddString("type", ChannelOpTypeNames[cu.Type])
|
enc.AddString("type", ChannelOpTypeNames[cu.Type])
|
||||||
enc.AddInt64("nodeID", cu.NodeID)
|
enc.AddInt64("nodeID", cu.NodeID)
|
||||||
|
|
Loading…
Reference in New Issue