From 3fa00070047b5d019d39e691598ee2890283d052 Mon Sep 17 00:00:00 2001 From: Jack Dempsey Date: Sat, 23 Jul 2011 21:39:57 -0700 Subject: log at debug level what line caused the redirect_to --- actionpack/lib/action_controller/metal/redirecting.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb index dee7eb1ec8..a05902954a 100644 --- a/actionpack/lib/action_controller/metal/redirecting.rb +++ b/actionpack/lib/action_controller/metal/redirecting.rb @@ -59,6 +59,7 @@ module ActionController def redirect_to(options = {}, response_status = {}) #:doc: raise ActionControllerError.new("Cannot redirect to nil!") if options.nil? raise AbstractController::DoubleRenderError if response_body + logger.debug { "Redirected by #{caller(1).first rescue "unknown"}" } if logger self.status = _extract_redirect_to_status(options, response_status) self.location = _compute_redirect_to_location(options) -- cgit v1.2.3