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