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