Only Benchmark and log if we're going to output the information.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
5ce6d74531
commit
696d140b6c
|
@ -112,7 +112,7 @@ module ActionView
|
|||
add_counter_to_local_assigns!(partial_name, local_assigns)
|
||||
add_object_to_local_assigns!(partial_name, local_assigns, object)
|
||||
|
||||
if logger
|
||||
if logger && logger.debug?
|
||||
ActionController::Base.benchmark("Rendered #{path}/_#{partial_name}", Logger::DEBUG, false) do
|
||||
render("#{path}/_#{partial_name}", local_assigns)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue