Permalink
Browse files

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
  • Loading branch information...
1 parent 129b3bd commit d7ff645e310205f10579549de4b2ebc5db299ecf @NZKoz NZKoz committed Nov 17, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -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

0 comments on commit d7ff645

Please sign in to comment.