Skip to content
Browse files

Better logging

  • Loading branch information...
1 parent c7c7736 commit c629940f62a9c4189df7b3ddd97a0f1cc7545f1c Elad Meidar committed Apr 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/contrib/deflect.rb
View
2 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_URI"]
+ map[:request_uris] = map[:request_uris] << "#{@env["REQUEST_METHOD"]} '#{@env["REQUEST_URI"]}' #{} => #{@env["HTTP_USER_AGENT"]}"
end
def exceeded_request_threshold?

0 comments on commit c629940

Please sign in to comment.
Something went wrong with that request. Please try again.