Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added that query benchmarking will only happen if its going to be log…

…ged anyway #344

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 88192b9b1be2bd0729073c899df42a789f264993 1 parent 830c561
@dhh dhh authored
View
2  activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Added that query benchmarking will only happen if its going to be logged anyway #344
+
* Added higher_item and lower_item as public methods for acts_as_list #342 [Tobias Luetke]
* Added respondence to *_before_type_cast for all attributes to return their string-state before they were type casted by the column type.
View
2  activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -349,7 +349,7 @@ def structure_dump() end
protected
def log(sql, name, connection, &action)
begin
- if @logger.nil?
+ if @logger.nil? || @logger.level > Logger::INFO
action.call(connection)
else
result = nil
Please sign in to comment.
Something went wrong with that request. Please try again.