From bc392a143444b26b2203eda118412c046a2fbbdb Mon Sep 17 00:00:00 2001 From: Alexey Bespalov Date: Thu, 28 Jul 2022 12:35:28 +0400 Subject: [PATCH] fixed --- lib/httplog/adapters/ethon.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/httplog/adapters/ethon.rb b/lib/httplog/adapters/ethon.rb index ff60d5e..4415e89 100644 --- a/lib/httplog/adapters/ethon.rb +++ b/lib/httplog/adapters/ethon.rb @@ -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 @@ -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,