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