lib/soaspec/o_auth2.rb in soaspec-0.2.28 vs lib/soaspec/o_auth2.rb in soaspec-0.2.29
- old
+ new
@@ -103,10 +103,10 @@
self.retry_count += 1
sleep 0.1 # Wait if a bit before retying obtaining access token
retry if retry_count < self.class.retry_limit
raise error
else
- Soaspec::SpecLogger.info(["response_headers: #{response.headers}", "response_body: #{response.body}"]) if debug_oauth?
+ Soaspec::SpecLogger.info(["response: \n headers: #{response&.headers}\n body: #{response}\n"]) if debug_oauth?
JSON.parse(response)
end
# @return [String] String to represent OAuth for logging logs
def request_message