Skip to content

Commit

Permalink
force a sentry error (RedHatInsights#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
abaiken authored Apr 11, 2023
1 parent f9746e3 commit e6dea91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"errors"
"os"
"time"

Expand Down Expand Up @@ -29,6 +30,7 @@ func main() {
logger.Log.WithFields(logrus.Fields{"error": err}).Error("Error loading Sentry SDK with GLITCHTIP_DSN")
} else {
logger.Log.Info("Sentry SDK initialization using Glitchtip was successful!")
sentry.CaptureException(errors.New("Testing glitchtip configuration"))
}
} else {
logger.Log.Info("GLITCHTIP_DSN was not set, skipping Glitchtip initialization.")
Expand Down

0 comments on commit e6dea91

Please sign in to comment.