mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Fix logging
This commit is contained in:
parent
143b035aea
commit
b83986cec4
1 changed files with 1 additions and 1 deletions
|
@ -156,6 +156,7 @@ module RestClient
|
||||||
|
|
||||||
net.start do |http|
|
net.start do |http|
|
||||||
res = http.request(req, payload) { |http_response| fetch_body(http_response) }
|
res = http.request(req, payload) { |http_response| fetch_body(http_response) }
|
||||||
|
log_response res
|
||||||
process_result(res)
|
process_result(res)
|
||||||
end
|
end
|
||||||
rescue EOFError
|
rescue EOFError
|
||||||
|
@ -203,7 +204,6 @@ module RestClient
|
||||||
else
|
else
|
||||||
response = Response.new(Request.decode(res['content-encoding'], res.body), res)
|
response = Response.new(Request.decode(res['content-encoding'], res.body), res)
|
||||||
end
|
end
|
||||||
log_response response
|
|
||||||
|
|
||||||
code = res.code.to_i
|
code = res.code.to_i
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue