mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
Fix printing too many warnings (#27015)
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
parent
3c74acb55c
commit
802a6a86c0
@ -200,6 +200,11 @@ func (node *BaseNode) IsValidInMsg(in []Msg) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(in) == 0 {
|
||||||
|
// avoid printing too many logs.
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if len(in) != 1 {
|
if len(in) != 1 {
|
||||||
log.Warn("Invalid operate message input", zap.Int("input length", len(in)))
|
log.Warn("Invalid operate message input", zap.Int("input length", len(in)))
|
||||||
return false
|
return false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user