Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nulldef authored and trusche committed Sep 17, 2022
1 parent e57a862 commit bc392a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/httplog/adapters/ethon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Easy
module Http
alias orig_http_request http_request
def http_request(url, action_name, options = {})
@http_log = options.merge(method: action_name) # remember this for compact logging
@http_log = options.merge(method: action_name, url: url) # remember this for compact logging
orig_http_request(url, action_name, options)
end
end
Expand All @@ -31,7 +31,7 @@ def perform

HttpLog.call(
method: @http_log[:method],
url: @url,
url: @http_log[:url],
request_body: @http_log[:body],
request_headers: @http_log[:headers],
response_code: @return_code,
Expand Down

0 comments on commit bc392a1

Please sign in to comment.