diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-04-24 20:26:54 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-04-24 20:26:54 +0300 |
commit | faa36c0b6f318e19c081ce6a7fc59f6659738387 (patch) | |
tree | 2a068c2f2c31cfaff031eb7dd0d05602cb803658 /app.go | |
parent | 7250a994989f44c8bc3b83f60cba564cd3c3a74e (diff) |
Add a domain context to domain config retrieval error
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |