From 6ea34eafd95a18e40919354c4426b1dd64f6c7eb Mon Sep 17 00:00:00 2001 From: Enrique Lacal Date: Thu, 11 Apr 2024 14:27:19 +0100 Subject: [PATCH] Add more logging to understand failure when retrying Signed-off-by: Enrique Lacal --- internal/perf/perf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/perf/perf.go b/internal/perf/perf.go index 7c21846..105307e 100644 --- a/internal/perf/perf.go +++ b/internal/perf/perf.go @@ -295,7 +295,7 @@ func (pr *perfRunner) Init() (err error) { return false } // Retry for all other errors - log.Warnf("Retrying HTTP request. Status: '%v' Response: '%s' Error: '%v'", r.Status(), r.Body(), r.Error()) + log.Warnf("Retrying HTTP request. Status: '%v' Request: '%s' '%s' Response: '%s' Error: '%v'", r.Status(), r.Request.Method, r.Request.URL, r.Body(), r.Error()) return true } return false