Skip to content

Commit

Permalink
Merge pull request heroku#141 from heroku/remove_debug_lxpc
Browse files Browse the repository at this point in the history
remove debug output from LXPC
  • Loading branch information
hone committed Aug 29, 2013
2 parents fff8ff4 + e88b9c5 commit 6bee178
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions vendor/lpxc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def delay_flush
end
sleep(0.01)
rescue => e
$stderr.puts("at=start-error error=#{e.message}") if ENV['DEBUG']
end
end
end
Expand Down Expand Up @@ -149,7 +148,6 @@ def fmt(data)
def outlet
loop do
http = Net::HTTP.new(@logplex_url.host, @logplex_url.port)
http.set_debug_output($stdout) if ENV['DEBUG']
http.use_ssl = true if @logplex_url.scheme == 'https'
begin
http.start do |conn|
Expand All @@ -162,17 +160,14 @@ def outlet
begin
Timeout::timeout(@conn_timeout) {resp = conn.request(req)}
rescue => e
$stdout.puts("at=req-error msg=#{e.message}") if ENV['DEBUG']
next
ensure
@req_in_flight -= 1
end
num_reqs += 1
$stdout.puts("at=req-sent status=#{resp.code}") if ENV['DEBUG']
end
end
rescue => e
$stdout.puts("at=req-error msg=#{e.message}") if ENV['DEBUG']
ensure
http.finish if http.started?
end
Expand Down

0 comments on commit 6bee178

Please sign in to comment.