mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: refine error log of json parse error (#30671)
add more error info when json format does not match. relate to https://github.com/milvus-io/milvus/issues/29837 Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>
This commit is contained in:
parent
58260864b5
commit
d970a9fc6c
@ -374,7 +374,7 @@ func (v *validateUtil) checkJSONFieldData(field *schemapb.FieldData, fieldSchema
|
||||
for _, data := range jsonArray {
|
||||
err := json.Unmarshal(data, &jsonMap)
|
||||
if err != nil {
|
||||
log.Warn("insert invalid JSON data",
|
||||
log.Warn("insert invalid JSON data, milvus only support json map without nesting",
|
||||
zap.ByteString("data", data),
|
||||
zap.Error(err),
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user