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:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-04-24 20:26:54 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-04-24 20:26:54 +0300
commitfaa36c0b6f318e19c081ce6a7fc59f6659738387 (patch)
tree2a068c2f2c31cfaff031eb7dd0d05602cb803658 /app.go
parent7250a994989f44c8bc3b83f60cba564cd3c3a74e (diff)
Add a domain context to domain config retrieval error
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 c5555fc0..c00540f3 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")
+ log.WithError(err).WithField("domain", r.Host).Error("could not fetch domain information from a source")
httperrors.Serve502(w)
return