From fc407c6be36e02ee68d46ed23bd0a5699ae1ad97 Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Tue, 12 Sep 2017 21:49:48 +0900 Subject: [PATCH] =?UTF-8?q?nil=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consumer/influx_stat.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/consumer/influx_stat.go b/consumer/influx_stat.go index 7a16412..47d5660 100644 --- a/consumer/influx_stat.go +++ b/consumer/influx_stat.go @@ -46,7 +46,6 @@ func (m *influxMetric) StartLogging() { defer func() { if err := recover(); err != nil { - influxLogger.Errorf("ERR:%s", debug.Stack()) m.handler.NotifyError(err.(error)) } }() @@ -83,7 +82,7 @@ func (m *influxMetric) StartLogging() { panic(err) } ticker := time.Tick(time.Second) - pointList := make([]*client.Point, 0) + pointList := make([]*client.Point, 0, 0) for { pointList = pointList[:cap(pointList)] @@ -113,7 +112,7 @@ func (m *influxMetric) StartLogging() { if err := influxDbConn.Write(batchPoint); err != nil { influxLogger.Warn(err) } - pointList = pointList[:0] + pointList = make([]*client.Point, 0, 0) } }