Skip to content

Commit

Permalink
Remove duplicate initialization for sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Dec 18, 2024
1 parent 207dbf0 commit d731155
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/rp-indexer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ func main() {
log.Fatalf("error initiating sentry client, error %s, dsn %s", err, cfg.SentryDSN)
os.Exit(1)
}
err = sentry.Init(sentry.ClientOptions{
Dsn: cfg.SentryDSN,
})
if err != nil {
log.Fatalf("Sentry init failed: %v", err)
}

defer sentry.Flush(2 * time.Second)
logger = slog.New(
Expand Down

0 comments on commit d731155

Please sign in to comment.