How do I debug HTTP of Ruby google-api-client

后端 未结 1 828
你的背包
你的背包 2020-12-21 09:10

I\'m trying to integrate with Google Drive, using the google-api-client. Since there\'s a lot of stuff going on, I would like to be able to see what\'s going over the wire (

相关标签:
1条回答
  • 2020-12-21 10:11

    Google api client uses Faraday.default_connection by default. It is thus possible to manipulate this object, which can be done simply with the following line of code:

    Faraday.default_connection.response :logger
    

    Took me a while to figure out.

    0 讨论(0)
提交回复
热议问题