Skip to content

Commit

Permalink
Add more logging to understand failure when retrying
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Lacal <[email protected]>
  • Loading branch information
EnriqueL8 committed Apr 11, 2024
1 parent 3a4986c commit 6ea34ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/perf/perf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ea34ea

Please sign in to comment.