From d7ff645e310205f10579549de4b2ebc5db299ecf Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Sat, 17 Nov 2007 03:57:19 +0000 Subject: 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 --- activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index da3c9ad7bd..940707a9e9 100755 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -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 -- cgit v1.2.3