zhangzengfei
2024-08-28 9b8178149622937e5e06b1d0c8677fdf9d2fb011
添加调试日志
1个文件已修改
4 ■■■■ 已修改文件
db/person.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
db/person.go
@@ -1,6 +1,7 @@
package db
import (
    "basic.com/valib/logger.git"
    "encoding/base64"
    "sdkCompare/util"
    "strconv"
@@ -59,6 +60,7 @@
        if p.FaceFeature != "" {
            byteFeat, err := base64.StdEncoding.DecodeString(p.FaceFeature)
            if err != nil {
                logger.Errorf("Person %s feature is invalid", p.Id)
                continue
            }
@@ -69,6 +71,8 @@
                FaceFeature: util.ByteSlice2float32Slice(byteFeat),
                Enable:      int32(p.Enable),
            })
        } else {
            logger.Errorf("Person %s feature is empty %s", p.Id)
        }
    }
    return