|
|
|
@ -33,7 +33,7 @@ func (l *Logger) LogRoundTrip(request *http.Request, response *http.Response, er |
|
|
|
|
} else { |
|
|
|
|
_, _ = buf.ReadFrom(request.Body) |
|
|
|
|
} |
|
|
|
|
glog.Glog.WithContext(ctx).Info("url:", method, index, "request:", buf.String()) |
|
|
|
|
glog.Glog.WithContext(ctx).Info("url:", method, index, " request:", buf.String()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if l.ResponseBodyEnabled() && response != nil && response.Body != nil && response.Body != http.NoBody { |
|
|
|
|