Closed AnkurGel closed 8 years ago
This will expose the config.debug to enable HTTP request-response logging while making api requests. This helps dev in finding intrinsic details about the request made. // cc @sishen
config.debug
I, [2016-09-04T16:13:52.415581 #17056] INFO -- : get https://sandbox-api.uber.com/v1/me D, [2016-09-04T16:13:52.415786 #17056] DEBUG -- request: Accept: "/" User-Agent: "Uber Ruby Gem 0.6.0" Content-Type: "application/json; charset=UTF-8" Authorization: "Bearer my-token" I, [2016-09-04T16:13:54.509103 #17056] INFO -- Status: 200 D, [2016-09-04T16:13:54.509195 #17056] DEBUG -- response: server: "nginx" date: "Sun, 04 Sep 2016 10:43:49 GMT" content-type: "application/json" content-length: "325" connection: "close" content-language: "en" x-rate-limit-limit: "2000" x-rate-limit-remaining: "1994" x-rate-limit-reset: "1472986800" x-uber-app: "uberex-sandbox, migrator-uberex-sandbox-optimus" strict-transport-security: "max-age=0" x-content-type-options: "nosniff" x-xss-protection: "1; mode=block"
This will expose the
config.debug
to enable HTTP request-response logging while making api requests. This helps dev in finding intrinsic details about the request made. // cc @sishen