mirror of
https://github.com/github/rails.git
synced 2026-01-29 08:18:03 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user