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:
authorJaime Martinez <jmartinez@gitlab.com>2021-05-05 04:42:26 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-05-05 04:42:26 +0300
commitc816897846f8cd622b62088938aa25f186f69204 (patch)
tree701c973a3c5877d44c42d34e91850e6528bfb4fd /app.go
parent45671e0982be60f230e7c4d3fcb6c71d3adf5f79 (diff)
parent44bb18ecb6f8f5a14b62fea42614699ca022c594 (diff)
Merge branch 'improve/config-error' into 'master'
Add a domain context to domain config retrieval error Closes #506 See merge request gitlab-org/gitlab-pages!468
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.go b/app.go
index bd4fe4e6..f6ec142e 100644
--- a/app.go
+++ b/app.go
@@ -155,7 +155,7 @@ func (a *theApp) routingMiddleware(handler http.Handler) http.Handler {
host, d, err := a.getHostAndDomain(r)
if err != nil && !errors.Is(err, domain.ErrDomainDoesNotExist) {
metrics.DomainsSourceFailures.Inc()
- log.WithError(err).Error("could not fetch domain information from a source")
+ logging.LogRequest(r).WithError(err).Error("could not fetch domain information from a source")
httperrors.Serve502(w)
return