Skip to content

Commit

Permalink
tweaked logs
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Jan 24, 2025
1 parent cee0089 commit 155fafe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions race_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (t *raceTransport) RoundTrip(req *http.Request) (*http.Response, error) {

span.SetAttributes(attribute.String("http.url", req.URL.String()))

log.Debugf("Starting RoundTrip race %v", req)
log.Debugf("Starting RoundTrip race %v", req.URL.Host)
// Try all methods in parallel and return the first successful response.
// If all fail, return the last error.
ctx, cancel := context.WithTimeout(ctx, 1*time.Minute)
Expand Down Expand Up @@ -69,7 +69,7 @@ func (t *raceTransport) RoundTrip(req *http.Request) (*http.Response, error) {
cancelRoundTrip()
continue
}
log.Debugf("Got response for %v:\n%v", req.URL.Host, resp)
log.Debugf("Got response '%v' for %v", resp.Status, req.URL.Host)
cancelRoundTrip()
return resp, nil
case err := <-errCh:
Expand Down

0 comments on commit 155fafe

Please sign in to comment.