Skip to content
Snippets Groups Projects
Commit 1d7d5369 authored by Blaine Schanfeldt's avatar Blaine Schanfeldt Committed by Alex Reisner
Browse files

Suggestion to not log full response body as a warning (#1377)

Don't log full response body as a warning.
parent d71ea2f2
No related branches found
No related tags found
No related merge requests found
......@@ -209,7 +209,10 @@ module Geocoder
JSON.parse(data)
end
rescue
raise_error(ResponseParseError.new(data)) or Geocoder.log(:warn, "Geocoding API's response was not valid JSON: #{data}")
unless raise_error(ResponseParseError.new(data))
Geocoder.log(:warn, "Geocoding API's response was not valid JSON")
Geocoder.log(:debug, "Raw response: #{data}")
end
end
##
......
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