Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/domain/domain.go')
-rw-r--r--internal/domain/domain.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go
index bf202cd3..76a1cf25 100644
--- a/internal/domain/domain.go
+++ b/internal/domain/domain.go
@@ -7,8 +7,7 @@ import (
"net/http"
"sync"
- "gitlab.com/gitlab-org/labkit/errortracking"
-
+ "gitlab.com/gitlab-org/gitlab-pages/internal/errortracking"
"gitlab.com/gitlab-org/gitlab-pages/internal/httperrors"
"gitlab.com/gitlab-org/gitlab-pages/internal/serving"
)
@@ -131,7 +130,7 @@ func (d *Domain) ServeFileHTTP(w http.ResponseWriter, r *http.Request) bool {
return true
}
- errortracking.Capture(err, errortracking.WithRequest(r), errortracking.WithStackTrace())
+ errortracking.CaptureErrWithReqAndStackTrace(err, r)
httperrors.Serve503(w)
return true
}
@@ -149,7 +148,7 @@ func (d *Domain) ServeNotFoundHTTP(w http.ResponseWriter, r *http.Request) {
return
}
- errortracking.Capture(err, errortracking.WithRequest(r), errortracking.WithStackTrace())
+ errortracking.CaptureErrWithReqAndStackTrace(err, r)
httperrors.Serve503(w)
return
}
@@ -173,7 +172,7 @@ func (d *Domain) ServeNamespaceNotFound(w http.ResponseWriter, r *http.Request)
return
}
- errortracking.Capture(err, errortracking.WithRequest(r), errortracking.WithStackTrace())
+ errortracking.CaptureErrWithReqAndStackTrace(err, r)
httperrors.Serve503(w)
return
}