Skip to content

Commit

Permalink
chore: Update logging format and remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ShocOne committed Aug 29, 2024
1 parent e0a150f commit c57773a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion httpclient/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (c *Client) request(ctx context.Context, method, endpoint string, body inte

c.CheckDeprecationHeader(resp)

c.Sugar.Debug("Request sent successfully", zap.String("method", method), zap.String("endpoint", endpoint), zap.Int("status_code", resp.StatusCode))
c.Sugar.Debug("Request sent successfully", zap.String("method", method), zap.String("endpoint", endpoint), zap.Int("status_code", resp.StatusCode), zap.Any("raw_response", resp))

time.Sleep(c.config.MandatoryRequestDelay)

Expand Down
2 changes: 1 addition & 1 deletion response/success.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func HandleAPISuccessResponse(resp *http.Response, out interface{}, sugar *zap.S

// TODO do we need to redact some auth headers here? I think so.
// sugar.Debugw("HTTP Response Headers", zap.Any("Headers", resp.Header))
// sugar.Debugw("Raw HTTP Response", zap.String("Body", string(bodyBytes)))
sugar.Debugw("Raw HTTP Response", zap.String("Body", string(bodyBytes)))

bodyReader := bytes.NewReader(bodyBytes)
contentType := resp.Header.Get("Content-Type")
Expand Down

0 comments on commit c57773a

Please sign in to comment.