Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: config option to verbosely print all calls/responses made #168

Open
sidion opened this issue Sep 27, 2018 · 0 comments
Open

Comments

@sidion
Copy link

sidion commented Sep 27, 2018

I am having an issue with some component charges being made to chargify and their helpdesk requested the full request and response being made to help debug

i had to monkey patch the gem with:
Chargify::Subscription::Component.class_eval do def update run_callbacks :update do binding.pry connection.put(element_path(prefix_options), encode, self.class.headers).tap do |response| binding.pry load_attributes_from_response(response) end end end end

including an option to verbosely print all requests:
-url with params
-headers
-body
and the full response from chargify would have made this process simple and much much faster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant