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

Change debugging to go to $stdout #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/dnsimpler/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def self.base_options
opts[:http_proxy_pass] = proxy[:pass]
end

puts "Base Options: #{opts}" if DNSimpler.debug
$stdout.puts "Base Options: #{opts}" if DNSimpler.debug

return opts
end
Expand All @@ -43,7 +43,7 @@ def self.#{method}(path, opts = {}, &blk)
if DNSimpler.debug
response.request = req

puts "Request Options: " + opts.to_s
$stdout.puts "Request Options: #{opts.inspect}"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes the test to fail when theopts are undefined. opts probably shouldn't ever be undefined though.

end

return response
Expand All @@ -56,4 +56,4 @@ def self.#{method}(path, opts = {}, &blk)
end

end
end
end