소스 검색

Fix Sentry

DarthSim 5 년 전
부모
커밋
90ccd0861d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      errors_reporting.go

+ 1 - 1
errors_reporting.go

@@ -65,7 +65,7 @@ func reportError(err error, req *http.Request) {
 
 	if sentryEnabled {
 		hub := sentry.CurrentHub().Clone()
-		hub.Scope().SetRequest(sentry.Request{}.FromHTTPRequest(req))
+		hub.Scope().SetRequest(req)
 		hub.Scope().SetLevel(sentry.LevelError)
 		eventID := hub.CaptureException(err)
 		if eventID != nil {