Permalink
Browse files

Log if filters return false and halt execution #1735 [Michael Koziarski]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 02c1dae commit e69924ecdc23558158af952a4a11cb4b5080f4b5 @dhh dhh committed Jul 17, 2005
Showing with 5 additions and 1 deletion.
  1. +5 −1 actionpack/lib/action_controller/filters.rb
@@ -325,7 +325,11 @@ def call_filters(filters)
"Filters need to be either a symbol, proc/method, or class implementing a static filter method"
)
end
- return false if filter_result == false
+
+ if filter_result == false
+ logger.info "Filter chain halted as [#{filter}] returned false"
+ return false
+ end
end
end

0 comments on commit e69924e

Please sign in to comment.