diff options
author | Karunakar (Ruby) <revurikarna@gmail.com> | 2011-12-21 22:40:20 +0530 |
---|---|---|
committer | Karunakar (Ruby) <revurikarna@gmail.com> | 2011-12-21 23:00:06 +0530 |
commit | 730209a6792f2440ed744b47522c69f4ed29e8d1 (patch) | |
tree | a8c6f04ca8e889894a7b1c0d4cf08e28c459b727 /activerecord/test | |
parent | 9bcd52ffca59998b21b5edf5d045a7eaed9b4a2f (diff) | |
download | rails-730209a6792f2440ed744b47522c69f4ed29e8d1.tar.gz rails-730209a6792f2440ed744b47522c69f4ed29e8d1.tar.bz2 rails-730209a6792f2440ed744b47522c69f4ed29e8d1.zip |
Changed the old logger to new active support logger
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/support/connection.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/support/connection.rb b/activerecord/test/support/connection.rb index a39794fa39..56369da346 100644 --- a/activerecord/test/support/connection.rb +++ b/activerecord/test/support/connection.rb @@ -1,4 +1,4 @@ -require 'logger' +require 'active_support/logger' require_dependency 'models/course' module ARTest @@ -12,7 +12,7 @@ module ARTest def self.connect puts "Using #{connection_name} with Identity Map #{ActiveRecord::IdentityMap.enabled? ? 'on' : 'off'}" - ActiveRecord::Base.logger = Logger.new("debug.log") + ActiveRecord::Base.logger = ActiveSupport::Logger.new("debug.log") ActiveRecord::Base.configurations = connection_config ActiveRecord::Base.establish_connection 'arunit' Course.establish_connection 'arunit2' |