Skip to content
Browse files

Merge pull request #4109 from Karunakar/test1

Changed the old logger to new active support logger
  • Loading branch information...
2 parents a03d26e + 730209a commit 1a358e43d204ef86229418e76c55579220b41207 @josevalim josevalim committed Dec 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/support/connection.rb
View
4 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 @@ def self.connection_config
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'

0 comments on commit 1a358e4

Please sign in to comment.
Something went wrong with that request. Please try again.