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
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-12-10 09:38:29 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-01-26 01:18:57 +0300
commitb60bb6be0ef7eda921d158bfdc8e178cf3dec15d (patch)
tree141b060acaaa6041a99547eba6ca436bb03d58e8 /internal/logging
parent61376993983da05a747bce66c39759f622755b01 (diff)
Add more test cases for resolver errors
Fix imports and enable test
Diffstat (limited to 'internal/logging')
-rw-r--r--internal/logging/logging.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/logging/logging.go b/internal/logging/logging.go
index 4dcf66d2..baf87e60 100644
--- a/internal/logging/logging.go
+++ b/internal/logging/logging.go
@@ -61,6 +61,8 @@ func getExtraLogFields(r *http.Request) log.Fields {
if d := request.GetDomain(r); d != nil {
lp, err := d.GetLookupPath(r)
if err != nil {
+ logFields["error"] = err.Error()
+
return logFields
}