Skip to content

Commit

Permalink
Changed connection output to debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
treeder committed Oct 4, 2012
1 parent 48288a9 commit 241e622
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
2 changes: 1 addition & 1 deletion VERSION.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
:major: 1
:minor: 4
:patch: 1
:patch: 2

4 changes: 2 additions & 2 deletions lib/right_http_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def start(request_params)
@port = request_params[:port]
@protocol = request_params[:protocol]

@logger.info("Opening new #{@protocol.upcase} connection to #@server:#@port")
@logger.debug("Opening new #{@protocol.upcase} connection to #@server:#@port")
@http = Net::HTTP.new(@server, @port)
@http.open_timeout = @params[:http_connection_open_timeout]
@http.read_timeout = @params[:http_connection_read_timeout]
Expand Down Expand Up @@ -407,7 +407,7 @@ def request(request_params, &block)
def finish(reason = '')
if @http && @http.started?
reason = ", reason: '#{reason}'" unless self.class.blank?(reason)
@logger.info("Closing #{@http.use_ssl? ? 'HTTPS' : 'HTTP'} connection to #{@http.address}:#{@http.port}#{reason}")
@logger.debug("Closing #{@http.use_ssl? ? 'HTTPS' : 'HTTP'} connection to #{@http.address}:#{@http.port}#{reason}")
@http.finish
end
end
Expand Down

0 comments on commit 241e622

Please sign in to comment.