mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-03-27 20:30:27 +02:00
Fix Sentry
This commit is contained in:
parent
d67ccd9d69
commit
90ccd0861d
@ -65,7 +65,7 @@ func reportError(err error, req *http.Request) {
|
|||||||
|
|
||||||
if sentryEnabled {
|
if sentryEnabled {
|
||||||
hub := sentry.CurrentHub().Clone()
|
hub := sentry.CurrentHub().Clone()
|
||||||
hub.Scope().SetRequest(sentry.Request{}.FromHTTPRequest(req))
|
hub.Scope().SetRequest(req)
|
||||||
hub.Scope().SetLevel(sentry.LevelError)
|
hub.Scope().SetLevel(sentry.LevelError)
|
||||||
eventID := hub.CaptureException(err)
|
eventID := hub.CaptureException(err)
|
||||||
if eventID != nil {
|
if eventID != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user