Skip to content

Commit

Permalink
fix dump body bool in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
donutloop committed Jan 22, 2020
1 parent 1a9523a commit ac74e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debugutil/http_log_round_tripper.go
Expand Up @@ -19,7 +19,7 @@ type LogRoundTripper struct {
// RoundTripper returns a new http.RoundTripper which logs all requests (request and response dump)
// Should only be used for none production envs
func NewLogRoundTripper(roundTripper http.RoundTripper, logger logger, dumpBody bool) http.RoundTripper {
return LogRoundTripper{roundTripper, logger, true}
return LogRoundTripper{roundTripper, logger, dumpBody}
}

func (tr LogRoundTripper) RoundTrip(req *http.Request) (res *http.Response, err error) {
Expand Down

0 comments on commit ac74e50

Please sign in to comment.