From 6e6c5355290cde3647794b893538e899f513b6d7 Mon Sep 17 00:00:00 2001 From: zbuchheit Date: Fri, 14 Jun 2024 15:28:06 -0700 Subject: [PATCH] add improved detailed logging for retries --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index aecff51..7f361af 100644 --- a/client.go +++ b/client.go @@ -487,6 +487,7 @@ func (c *Client) Do(ctx context.Context, method string, path string, queryParams // Only sleep if we're not running tests. if len(c.testData) == 0 { + c.Log(ctx, api.LogDetailed, fmt.Sprintf("Response code %d encountered, sleeping for %d seconds", resp.StatusCode, len(retry)+1)) time.Sleep(time.Duration(len(retry)+1*2) * time.Second) } return c.Do(ctx, method, path, queryParams, input, output, append(retry, stat)...)