Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

show response code in log msg

  • Loading branch information...
commit 26e1d45ae1be6bddc59d50b2190d959ab70070ab 1 parent 84428dc
@jamesgolick authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/trample/session.rb
View
3  lib/trample/session.rb
@@ -12,7 +12,6 @@ def initialize(config)
end
def trample
- puts @config.login.inspect
hit @config.login unless @config.login.nil?
@config.iterations.times do
@config.pages.each do |p|
@@ -27,7 +26,7 @@ def hit(page)
# this is ugly, but it's the only way that I could get the test to pass
# because rr keeps a reference to the arguments, not a copy. ah well.
@cookies = cookies.merge(last_response.cookies)
- logger.info "#{page.request_method.to_s.upcase} #{page.url} #{response_times.last}s"
+ logger.info "#{page.request_method.to_s.upcase} #{page.url} #{response_times.last}s #{last_response.code}"
end
def request(page)
Please sign in to comment.
Something went wrong with that request. Please try again.