浏览代码

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 {