1
0
Fork 0

에러 표시

This commit is contained in:
Sangbum Kim 2017-09-12 21:44:31 +09:00
parent a62d37bafa
commit 45d95dbffd
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,8 @@ import (
"github.com/influxdata/influxdb/client/v2" "github.com/influxdata/influxdb/client/v2"
"time" "time"
"strconv" "strconv"
"runtime/debug"
"github.com/Sirupsen/logrus"
) )
var ( var (
@ -45,6 +47,7 @@ func (m *influxMetric) StartLogging() {
defer func() { defer func() {
if err := recover(); err != nil { if err := recover(); err != nil {
logrus.Errorf("ERR:%s",debug.Stack())
m.handler.NotifyError(err.(error)) m.handler.NotifyError(err.(error))
} }
}() }()