stats: fix crash

This commit is contained in:
cws 2017-09-01 14:58:44 -04:00
parent 885fe097c0
commit d2fdb01f08
1 changed files with 2 additions and 1 deletions

View File

@ -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)