This is an old question, but I could not find a direct example of how to debug Koala requests.
Koala uses Faraday, which is extremely extensible. It is based on Rack middleware, for which Koala installs default middleware. Here's how to add logging to STDOUTto the Faraday middleware:
Koala.http_service.faraday_middleware = Proc.new do |builder|
builder.use Faraday::Response::Logger
Koala::HTTPService::DEFAULT_MIDDLEWARE.call(builder)
end
Koala documentation on HTTP requests:
https://github.com/arsduo/koala/wiki/HTTP-Services
You can learn more about how to use Faraday and where I got the registrar right here:
http://mislav.uniqpath.com/2011/07/faraday-advanced-http/
Hope this helps anyone looking for an easy way to debug Koala HTTP requests to the Facebook API!
source
share