Skip to content

Commit

Permalink
fix: log response status
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Aug 30, 2023
1 parent 404e07f commit 8289da8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exthttp/exthttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func LogRequest(next func(w http.ResponseWriter, r *http.Request, body []byte))
Int("res_size", size).
Int("req_size", len(reqBody)).
Dur("duration", duration).
Int("status", status).
Msg("")
})(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
next(w, r, reqBody)
Expand Down

0 comments on commit 8289da8

Please sign in to comment.