Permalink
Browse files

More logging

  • Loading branch information...
1 parent c629940 commit f55298421f7126bd7de42be42b0d7987df26672f Elad Meidar committed Apr 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/contrib/deflect.rb
@@ -131,7 +131,7 @@ def rails_logger(message)
def increment_requests
map[:requests] += 1
rails_logger "Current Request: #{@env["REQUEST_URI"]}"
- map[:request_uris] = map[:request_uris] << "#{@env["REQUEST_METHOD"]} '#{@env["REQUEST_URI"]}' #{} => #{@env["HTTP_USER_AGENT"]}"
+ map[:request_uris] = map[:request_uris] << "#{@env["REQUEST_METHOD"]} '#{@env["HTTP_HOST"]}#{@env["REQUEST_URI"]}' #{} => #{@env["HTTP_USER_AGENT"]}"
end
def exceeded_request_threshold?

0 comments on commit f552984

Please sign in to comment.