grnhse / greenhouse_io

Ruby API wrapper for Greenhouse.io API
MIT License
44 stars 46 forks source link

Option to enable debugging #14

Closed dblommesteijn closed 8 years ago

dblommesteijn commented 8 years ago

I wanted to enable the debug_output for HTTParty (part of HTTMultiParty) but I have trouble doing so in my own code. In lib/greenhouse_io/api/client.rb there is the possibility to set debug_output $stdout (for example). I cannot do this in my own code, it seems to be limited to where include HTTMultiParty is specified. Do you plan on adding such debug option described above, because it would really help debugging a lot!

UPDATE: I've found a workaround that works for me, invoking: GreenhouseIo::Client.debug_output $stdout before instantiating Client.new seems to give me the desired behaviour.