fix(sentry): send unwrapped error to sentry instead of http error
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fe27dd59ad
commit
f5b90517c4
|
@ -156,10 +156,10 @@ func setupSentry(e *echo.Echo) {
|
|||
if hub != nil {
|
||||
hub.WithScope(func(scope *sentry.Scope) {
|
||||
scope.SetExtra("url", c.Request().URL)
|
||||
hub.CaptureException(err)
|
||||
hub.CaptureException(herr.Internal)
|
||||
})
|
||||
} else {
|
||||
sentry.CaptureException(err)
|
||||
sentry.CaptureException(herr.Internal)
|
||||
log.Debugf("Could not add context for sending error '%s' to sentry", err.Error())
|
||||
}
|
||||
log.Debugf("Error '%s' sent to sentry", err.Error())
|
||||
|
|
Loading…
Reference in New Issue
Block a user