Skip to content

Commit

Permalink
Merge pull request #214 from sljeff/default-repanic
Browse files Browse the repository at this point in the history
openapi sentry mw: default repanic
  • Loading branch information
HeathLee authored Sep 17, 2020
2 parents 07db26a + 4b43280 commit 79393fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/sentryext/openapi/mw.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ func GetMiddleWare(d *sentryext.SentryExt) (middleware.Builder, error) {
if err := config.Unmarshal(&o); err != nil {
return nil, err
}
if !config.IsSet("repanic") {
o.Repanic = true
}
handler := sentryhttp.New(o)
return handler.Handle, nil
}

0 comments on commit 79393fb

Please sign in to comment.