Skip to content

Commit

Permalink
feat: added resp content len in log (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
dskart committed Jun 7, 2024
1 parent 11fda95 commit 1dcbe67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func (api *Api) routeBase(w http.ResponseWriter, req *http.Request) {
sess.WithLogger(sess.Logger().With(
zap.Int("awsStatusCode", resp.StatusCode),
zap.Bool("crunched", crunched),
zap.Int("respContentLength", int(resp.ContentLength)),
))

// Convert the response headers to lower case, as Python etc libraries expect lower case.
Expand Down

0 comments on commit 1dcbe67

Please sign in to comment.