lib/utilities/UERequest.rb in ue-ruby-sdk-1.1.9 vs lib/utilities/UERequest.rb in ue-ruby-sdk-1.1.12
- old
+ new
@@ -6,18 +6,18 @@
def self.fetch(resource, request_options)
form = request_options[:form] || {}
user = request_options[:user]
pass = request_options[:pass]
- $logger.debug form.inspect
+ # $logger.debug form.inspect
#Inject user:pass into base url
url_prefix = Constants.base_url.gsub /https?:\/\//, "https://#{user}:#{pass}@"
#Concat base url with resource
url = url_prefix + resource
- $logger.debug "http => #{url}"
+ # $logger.debug "http => #{url}"
response = RestClient.post url, form.to_json
- $logger.debug "resp => #{JSON.parse(response).deep_symbolize_keys}"
+ # $logger.debug "resp => #{JSON.parse(response).deep_symbolize_keys}"
JSON.parse(response).deep_symbolize_keys rescue response
end
end