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