mirror of https://github.com/velour/catbase.git
stats: fix crash
This commit is contained in:
parent
885fe097c0
commit
d2fdb01f08
|
@ -184,7 +184,8 @@ func (s stats) toDB(path string) error {
|
|||
return err
|
||||
}
|
||||
if stat.key == "" {
|
||||
log.Fatal("Keys should not be empty")
|
||||
log.Println("Keys should not be empty")
|
||||
return nil
|
||||
}
|
||||
log.Printf("Putting value in: '%s' %b, %+v", stat.key, []byte(stat.key), stat)
|
||||
err = b.Put([]byte(stat.key), v)
|
||||
|
|
Loading…
Reference in New Issue