Skip to content

Commit

Permalink
chore: add ARM request method and URI to logs for troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
feiskyer authored and k8s-infra-cherrypick-robot committed Apr 18, 2024
1 parent 272ada9 commit ba0b785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/azureclients/armclient/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func DoHackRegionalRetryForGET(c *Client) autorest.SendDecorator {

bodyString := string(bodyBytes)
trimmed := strings.TrimSpace(bodyString)
klog.V(6).Infof("Send.sendRequest got response with ContentLength %d, StatusCode %d and responseBody length %d", response.ContentLength, response.StatusCode, len(trimmed))
klog.V(6).Infof("%s %s got response with ContentLength %d, StatusCode %d and responseBody length %d", request.Method, request.URL.Path, response.ContentLength, response.StatusCode, len(trimmed))

// Hack: retry the regional ARM endpoint in case of ARM traffic split and arm resource group replication is too slow
// Empty content and 2xx http status code are returned in this case.
Expand Down

0 comments on commit ba0b785

Please sign in to comment.