-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
added 'verbose' flag to turn on logging for all http requests #82
Conversation
If I shape up the merge conflicts here, would this be merged? |
An alternative to logging is to use Set the |
@@ -321,6 +328,8 @@ def create_http(_url = nil) | |||
http_object.read_timeout = http_object.open_timeout = @options[:timeout] || 30 | |||
http_object.open_timeout = @options[:open_timeout] if @options[:open_timeout] | |||
|
|||
http_object.set_debug_output($stdout) if @options[:verbose] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about:
case @options[:verbose]
when false, nil
nil
when true
http_object.set_debug_output($stdout)
else
http_object.set_debug_output(@options[:verbose])
end
@cloocher can we get a rebase here? I love the code. |
I am reopening it so as to trigger TravisCI. |
I am reopening it so as to trigger TravisCI. |
1 similar comment
I am reopening it so as to trigger TravisCI. |
@cloocher @kurioscreative @dbezborodovrp could any of you please rebase this PR? |
Updated: I love the tests too. ❤️ 😍 |
I have reimplemented the improvement |
Reimplementing #82 - Debug Output Option
added 'verbose' flag to turn on logging for all http requests useful for debugging issues