forked from vikunja/vikunja
fix: don't send bad request errors to sentry
This commit is contained in:
parent
672fb35bcb
commit
c0c523f0a8
@ -128,7 +128,7 @@ func NewEcho() *echo.Echo {
|
||||
e.HTTPErrorHandler = func(err error, c echo.Context) {
|
||||
// Only capture errors not already handled by echo
|
||||
var herr *echo.HTTPError
|
||||
if errors.As(err, &herr) {
|
||||
if errors.As(err, &herr) && herr.Code > 403 {
|
||||
hub := sentryecho.GetHubFromContext(c)
|
||||
if hub != nil {
|
||||
hub.WithScope(func(scope *sentry.Scope) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user