Skip to content

Commit

Permalink
Temporarily Enable Sentry Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
f0o committed Sep 7, 2024
1 parent 152f283 commit 079c030
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,12 @@ func ListenAndServe(ctx context.Context, cfg *utils.Config, rts utils.RouterMap,
ProfilesSampleRate: 1.0,
Release: strings.Split(utils.Version(), "+")[0],
Environment: cfg.Web.Sentry.Environment,
Debug: true,
})
if err != nil {
log.Println("WARNING: Failed to initialize Sentry:", err, "disabling Sentry middleware")
} else {
log.Println("NOTICE: Sentry initialized")
log.Printf("NOTICE: Sentry initialized: %+v", cfg.Web.Sentry)
handler = sentryhttp.New(
sentryhttp.Options{
Repanic: true,
Expand Down

0 comments on commit 079c030

Please sign in to comment.