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-04 15:16:31 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-05-04 15:16:31 +0300
commit44bb18ecb6f8f5a14b62fea42614699ca022c594 (patch)
tree1e7e25fb9e378570afcff4a638a483c17dfe7809 /app.go
parentfaa36c0b6f318e19c081ce6a7fc59f6659738387 (diff)
Apply 1 suggestion(s) to 1 file(s)
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 c00540f3..2c3bf348 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).WithField("domain", r.Host).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