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