From d2fdb01f08fdc78a0debef8503dba1d7ca557e6c Mon Sep 17 00:00:00 2001 From: cws Date: Fri, 1 Sep 2017 14:58:44 -0400 Subject: [PATCH] stats: fix crash --- plugins/stats/stats.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/stats/stats.go b/plugins/stats/stats.go index 28729d7..7b7039b 100644 --- a/plugins/stats/stats.go +++ b/plugins/stats/stats.go @@ -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)