Permalink
Browse files

Better logging about partials when logger to to debug

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Oct 1, 2005
1 parent e7afaf6 commit c69160a90daade9c4c638fcc9fc181071109913e
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/lib/action_view/partials.rb
@@ -54,7 +54,9 @@ def render_partial(partial_path, local_assigns = nil, deprecated_local_assigns =
add_counter_to_local_assigns!(partial_name, local_assigns)
local_assigns[partial_name.intern] ||= object.is_a?(ActionView::Base::ObjectWrapper) ? object.value : object
- render("#{path}/_#{partial_name}", local_assigns)
+ ActionController::Base.benchmark("Rendered #{path}/_#{partial_name}", Logger::DEBUG, false) do
+ render("#{path}/_#{partial_name}", local_assigns)
+ end
end
# Deprecated, use render :partial, :collection

0 comments on commit c69160a

Please sign in to comment.