Commit e50ab97f authored by Oleksandr's avatar Oleksandr 🎱

add debug logging

parent bb7e89c8
......@@ -96,6 +96,7 @@ module Wedoops
# la aceptacion de permisos
@options.merge!(follow_redirects: false)
response=self.class.get('/auth', @options)
@logger.debug("grant token auth: #{@options} response #{response}")
# puts "RESPONSE CODE:#{response.code}"
if response.code >= 300 && response.code < 400
redirect_url = response.headers['location']
......
......@@ -22,6 +22,7 @@ module Wedoops
@options[:query].merge!(grant_type: "authorization_code")
@options.merge!(:logger => @logger)
response=self.class.post('/token',@options)
@logger.debug("grant request:#{@options} response: #{response}")
JSON.parse(response.body,symbolize_names: true)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment