diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-12-10 09:38:29 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-01-26 01:18:57 +0300 |
commit | b60bb6be0ef7eda921d158bfdc8e178cf3dec15d (patch) | |
tree | 141b060acaaa6041a99547eba6ca436bb03d58e8 /internal/logging | |
parent | 61376993983da05a747bce66c39759f622755b01 (diff) |
Add more test cases for resolver errors
Fix imports and enable test
Diffstat (limited to 'internal/logging')
-rw-r--r-- | internal/logging/logging.go | 2 |
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 } |