提交 d7ff645e 编写于 作者: M Michael Koziarski

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
上级 129b3bdc
......@@ -127,7 +127,7 @@ def log_info(sql, name, runtime)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册