Skip to content
Snippets Groups Projects
Commit c557ba43 authored by Alex Reisner's avatar Alex Reisner
Browse files

Log HTTP request before sending.

parent f87bc8ea
No related branches found
No related tags found
No related merge requests found
......@@ -264,6 +264,7 @@ module Geocoder
def make_api_request(query)
timeout(configuration.timeout) do
uri = URI.parse(query_url(query))
Geocoder.log(:debug, "Geocoder: HTTP request being made for #{uri.to_s}")
http_client.start(uri.host, uri.port, use_ssl: use_ssl?) do |client|
req = Net::HTTP::Get.new(uri.request_uri, configuration.http_headers)
if configuration.basic_auth[:user] and configuration.basic_auth[:password]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment