Skip to content

Instantly share code, notes, and snippets.

@natritmeyer
Last active May 24, 2024 20:46
Show Gist options
  • Save natritmeyer/6495044 to your computer and use it in GitHub Desktop.
Save natritmeyer/6495044 to your computer and use it in GitHub Desktop.
How to debug HTTParty requests
class MyResource
include HTTParty
debug_output $stdout # <= will spit out all request details to the console
#...
end
@Murphydbuffalo
Copy link

Yayyy thank you kindly :)

@andey
Copy link

andey commented Jun 14, 2018

How to write this to the rails logger ?

@gabrielms
Copy link

Thank you!!

@fongfan999
Copy link

You saved my bacon. Thank you.

@uhrohraggy
Copy link

This is amazingly still valuable 7 years later, thank you!

@carlosrdemoura
Copy link

Thanks!

@fguillen
Copy link

HTTParty::Basement.debug_output $stdout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment