Don't panic in AddRecord()

This commit is contained in:
Yang Luo 2023-10-05 00:11:13 +08:00
parent 6a9d1e0fe5
commit d0c424db0a

View File

@ -87,7 +87,7 @@ func AddRecord(record *casvisorsdk.Record) bool {
affected, err := casvisorsdk.AddRecord(record)
if err != nil {
panic(err)
fmt.Printf("AddRecord() error: %s", err.Error())
}
return affected