./lib/animoto/client.rb in animoto-0.0.0.alpha7 vs ./lib/animoto/client.rb in animoto-0.0.0.alpha8
- old
+ new
@@ -218,12 +218,12 @@
# @return [Hash] deserialized response body
# @raise [Error]
def request method, url, body, headers = {}, options = {}
error = catch(:fail) do
options = { :username => @key, :password => @secret }.merge(options)
- @logger.info "Sending request to #{url.inspect} with body #{body.inspect}"
+ @logger.info "Sending request to #{url.inspect} with body #{body}"
response = http_engine.request(method, url, body, headers, options)
- @logger.info "Received response #{response.inspect}"
+ @logger.info "Received response #{response}"
return response_parser.parse(response)
end
if error
errors = response_parser.parse(error)['response']['status']['errors']
err_string = errors.collect { |e| e['message'] }.join(', ')
\ No newline at end of file