Skip to content
Browse files

Revert "log at debug level what line caused the redirect_to"

This reverts commit 3fa0007.

Reason: This message is usually not accurate and annoying:

    Redirected by ~/.rbenv/versions/1.9.3-p327-perf/lib/ruby/1.9.1/logger.rb:371:in `add'`
  • Loading branch information...
1 parent e709134 commit 9dfe2d6f9fabddf9a451a995678a9648c8aaf401 @carlosantoniodasilva carlosantoniodasilva committed Jan 5, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 actionpack/lib/action_controller/metal/redirecting.rb
View
1 actionpack/lib/action_controller/metal/redirecting.rb
@@ -65,7 +65,6 @@ module Redirecting
def redirect_to(options = {}, response_status = {}) #:doc:
raise ActionControllerError.new("Cannot redirect to nil!") unless options
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)

0 comments on commit 9dfe2d6

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