Gather more errors in Sentry
Unittests / unittests (push) Successful in 9s Details
Unittests / deploy-dev (push) Successful in 54s Details

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
1 changed files with 3 additions and 0 deletions

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)