Added that query benchmarking will only happen if its going to be logged anyway #344
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
830c561e71
commit
88192b9b1b
|
@ -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.
|
||||
|
|
|
@ -349,7 +349,7 @@ module ActiveRecord
|
|||
protected
|
||||
def log(sql, name, connection, &action)
|
||||
begin
|
||||
if @logger.nil?
|
||||
if @logger.nil? || @logger.level > Logger::INFO
|
||||
action.call(connection)
|
||||
else
|
||||
result = nil
|
||||
|
|
Loading…
Reference in New Issue