Gather more errors in Sentry
All checks were successful
Unittests / unittests (push) Successful in 9s
Unittests / deploy-dev (push) Successful in 54s

This commit is contained in:
Adam Štrauch 2024-01-26 21:15:14 +01:00
parent 4e9398512e
commit 7a170e56d6
Signed by: cx
GPG Key ID: 7262DAFE292BCE20

View File

@ -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)