에러 표시
This commit is contained in:
parent
a62d37bafa
commit
45d95dbffd
|
@ -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))
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue