aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-11-17 03:57:19 +0000
committerMichael Koziarski <michael@koziarski.com>2007-11-17 03:57:19 +0000
commitd7ff645e310205f10579549de4b2ebc5db299ecf (patch)
tree4c6bb7b1989fb854093f44718328f6504fa30b73 /activerecord
parent129b3bdcead4c3cd5999a0069d2e13e4e5a043bf (diff)
downloadrails-d7ff645e310205f10579549de4b2ebc5db299ecf.tar.gz
rails-d7ff645e310205f10579549de4b2ebc5db299ecf.tar.bz2
rails-d7ff645e310205f10579549de4b2ebc5db299ecf.zip
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
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/connection_adapters/abstract_adapter.rb2
1 files changed, 1 insertions, 1 deletions
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