From 2aa5915a3ea8c24ab2cce6d03c5c317f08c34e5c Mon Sep 17 00:00:00 2001 From: cuigh Date: Tue, 24 Jul 2018 16:51:32 +0800 Subject: [PATCH] Fix log --- biz/chart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biz/chart.go b/biz/chart.go index 5e0ce8a..dc02125 100644 --- a/biz/chart.go +++ b/biz/chart.go @@ -188,7 +188,7 @@ func (b *chartBiz) FetchDatas(key string, names []string, period time.Duration) for range charts { d := <-ch if d.err != nil { - log.Get("metric").Error(err) + log.Get("metric").Error(d.err) } else { ds.Set(d.name, d.data) }