Skip to content

Commit c57773a

Browse files
committed
chore: Update logging format and remove debug statements
1 parent e0a150f commit c57773a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

httpclient/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func (c *Client) request(ctx context.Context, method, endpoint string, body inte
284284

285285
c.CheckDeprecationHeader(resp)
286286

287-
c.Sugar.Debug("Request sent successfully", zap.String("method", method), zap.String("endpoint", endpoint), zap.Int("status_code", resp.StatusCode))
287+
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))
288288

289289
time.Sleep(c.config.MandatoryRequestDelay)
290290

response/success.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func HandleAPISuccessResponse(resp *http.Response, out interface{}, sugar *zap.S
4040

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

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

0 commit comments

Comments
 (0)