Permalink
Browse files

show response code in log msg

  • Loading branch information...
1 parent 84428dc commit 26e1d45ae1be6bddc59d50b2190d959ab70070ab @jamesgolick committed May 6, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/trample/session.rb
View
@@ -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)

0 comments on commit 26e1d45

Please sign in to comment.