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
path: root/app.go
diff options
context:
space:
mode:
authorVladimir Shushlin <vshushlin@gitlab.com>2021-12-07 16:10:24 +0300
committerVladimir Shushlin <vshushlin@gitlab.com>2021-12-07 16:10:24 +0300
commit8ee29a24422e012c5ed9f6ada9d55f4e7c13673d (patch)
tree03aa0fc07dc73fb7fa9bf0118c6d037d4a971872 /app.go
parent2828e3b72a0a786736c2d6bcd5f591d5034e2754 (diff)
parent86d8aac645d1a6ccb24ab57c87e4aacf535bec7b (diff)
Merge branch 'upgrade-labkit-1-11-0' into 'master'
chore: upgrade to labkit 1.11.0 See merge request gitlab-org/gitlab-pages!633
Diffstat (limited to 'app.go')
-rw-r--r--app.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.go b/app.go
index 18513f0d..eedf833b 100644
--- a/app.go
+++ b/app.go
@@ -132,7 +132,7 @@ func (a *theApp) tryAuxiliaryHandlers(w http.ResponseWriter, r *http.Request, ht
if _, err := domain.GetLookupPath(r); err != nil {
if errors.Is(err, gitlab.ErrDiskDisabled) {
- errortracking.Capture(err)
+ errortracking.Capture(err, errortracking.WithStackTrace())
httperrors.Serve500(w)
return true
}
@@ -517,7 +517,7 @@ func handlePanicMiddleware(handler http.Handler) http.Handler {
err := fmt.Errorf("panic trace: %v", i)
metrics.PanicRecoveredCount.Inc()
logging.LogRequest(r).WithError(err).Error("recovered from panic")
- errortracking.Capture(err, errortracking.WithRequest(r), errortracking.WithContext(r.Context()))
+ errortracking.Capture(err, errortracking.WithRequest(r), errortracking.WithContext(r.Context()), errortracking.WithStackTrace())
httperrors.Serve500(w)
}
}()