Use debug, not info as log_info will discard the information if info is used.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Michael Koziarski
2007-11-17 03:57:19 +00:00
parent 129b3bdcea
commit d7ff645e31

View File

@@ -127,7 +127,7 @@ module ActiveRecord
protected
def log(sql, name)
if block_given?
if @logger and @logger.level <= Logger::INFO
if @logger and @logger.debug?
result = nil
seconds = Benchmark.realtime { result = yield }
@runtime += seconds