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:
Diffstat (limited to 'internal/httprange/http_reader.go')
-rw-r--r--internal/httprange/http_reader.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/httprange/http_reader.go b/internal/httprange/http_reader.go
index b9affc6d..08779bc8 100644
--- a/internal/httprange/http_reader.go
+++ b/internal/httprange/http_reader.go
@@ -87,7 +87,10 @@ func (r *Reader) ensureResponse() error {
// cleanup body on failure from r.setResponse to avoid memory leak
res.Body.Close()
- logging.LogRequest(req).WithError(err).WithField("status", res.Status).Error(rangeRequestFailedErrMsg)
+ logging.LogRequest(req).WithError(err).WithFields(log.Fields{
+ "status": res.StatusCode,
+ "status_text": res.Status,
+ }).Error(rangeRequestFailedErrMsg)
}
return err