Skip to content

Commit 5270650

Browse files
committed
debugging
1 parent d04f0c9 commit 5270650

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

httpclient/request.go

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ func (c *Client) requestWithRetries(method, endpoint string, body, out interface
125125
}
126126

127127
// Success
128+
c.Sugar.Debugf("LOGHERE RETRIES STATUS CODE: %v", resp.StatusCode)
128129
if resp.StatusCode >= http.StatusOK && resp.StatusCode < http.StatusBadRequest {
129130
if resp.StatusCode == http.StatusPermanentRedirect || resp.StatusCode == http.StatusTemporaryRedirect {
130131
c.Sugar.Warn("Redirect response received", zap.Int("status_code", resp.StatusCode), zap.String("location", resp.Header.Get("Location")))
@@ -224,6 +225,7 @@ func (c *Client) requestNoRetries(method, endpoint string, body, out interface{}
224225
return nil, err
225226
}
226227

228+
c.Sugar.Debugf("LOGHERE NO RETRIES STATUS CODE: %v", resp.StatusCode)
227229
if resp.StatusCode >= http.StatusOK && resp.StatusCode < http.StatusBadRequest {
228230
if resp.StatusCode == http.StatusPermanentRedirect || resp.StatusCode == http.StatusTemporaryRedirect {
229231
c.Sugar.Warn("Redirect response received", zap.Int("status_code", resp.StatusCode), zap.String("location", resp.Header.Get("Location")))

0 commit comments

Comments
 (0)