Gather more errors in Sentry
This commit is contained in:
parent
4e9398512e
commit
7a170e56d6
1 changed files with 3 additions and 0 deletions
3
main.go
3
main.go
|
@ -43,6 +43,7 @@ func _init() {
|
|||
// Connect to the NATS service
|
||||
nc, err = nats.Connect(config.NATSURL)
|
||||
if err != nil {
|
||||
sentry.CaptureException(err)
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
|
@ -103,6 +104,7 @@ func main() {
|
|||
start := time.Now()
|
||||
err := statsProcessor.GatherStats()
|
||||
if err != nil {
|
||||
sentry.CaptureException(err)
|
||||
log.Println("LOOP ERROR:", err.Error())
|
||||
}
|
||||
elapsed := time.Since(start)
|
||||
|
@ -117,6 +119,7 @@ func main() {
|
|||
for {
|
||||
err := nodeProcessor.Log()
|
||||
if err != nil {
|
||||
sentry.CaptureException(err)
|
||||
log.Println("NODE PERFORMANCE LOG ERROR:", err.Error())
|
||||
}
|
||||
time.Sleep(5 * time.Minute)
|
||||
|
|
Loading…
Reference in a new issue