提交 696d140b 编写于 作者: M Michael Koziarski

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
上级 5ce6d745
......@@ -112,7 +112,7 @@ def render_partial(partial_path, object_assigns = nil, local_assigns = nil) #:no
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册