From 45d95dbffd7cc334aa3e69762cc95f64949d17df Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Tue, 12 Sep 2017 21:44:31 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EB=9F=AC=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consumer/influx_stat.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/consumer/influx_stat.go b/consumer/influx_stat.go index 5b33c85..f6d58f6 100644 --- a/consumer/influx_stat.go +++ b/consumer/influx_stat.go @@ -7,6 +7,8 @@ import ( "github.com/influxdata/influxdb/client/v2" "time" "strconv" + "runtime/debug" + "github.com/Sirupsen/logrus" ) var ( @@ -45,6 +47,7 @@ func (m *influxMetric) StartLogging() { defer func() { if err := recover(); err != nil { + logrus.Errorf("ERR:%s",debug.Stack()) m.handler.NotifyError(err.(error)) } }()