Logging RestClient in a Rails app

前端 未结 5 1123
孤独总比滥情好
孤独总比滥情好 2021-01-18 08:47

I\'d like to debug the request my Rails app makes with RestClient. The RestClient docs say:

To enable logging you can

set RestClient.log w

5条回答
  •  攒了一身酷
    2021-01-18 09:20

    You can use this gem:

    https://github.com/uswitch/rest-client-logger

    It works out of the box just by adding "gem 'rest-client-logger'" to your Gemfile.

提交回复
热议问题