diff options
author | Karunakar (Ruby) <revurikarna@gmail.com> | 2011-12-21 00:57:30 +0530 |
---|---|---|
committer | Karunakar (Ruby) <revurikarna@gmail.com> | 2011-12-21 00:57:30 +0530 |
commit | c056787d5de2f3fb5c050c432d3eff3cdade09a3 (patch) | |
tree | 93cb85c216ee72c979e410ff7e7f076324d28f78 /activerecord/test | |
parent | b31c2ed367e7ee4779d9b292b4b45e7b7daec27d (diff) | |
download | rails-c056787d5de2f3fb5c050c432d3eff3cdade09a3.tar.gz rails-c056787d5de2f3fb5c050c432d3eff3cdade09a3.tar.bz2 rails-c056787d5de2f3fb5c050c432d3eff3cdade09a3.zip |
remove more uses of deprecated loggers
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 1012bfbd94..e34b0f655e 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1914,7 +1914,7 @@ class BasicsTest < ActiveRecord::TestCase def test_benchmark_with_log_level original_logger = ActiveRecord::Base.logger log = StringIO.new - ActiveRecord::Base.logger = Logger.new(log) + ActiveRecord::Base.logger = ActiveSupport::Logger.new(log) ActiveRecord::Base.logger.level = Logger::WARN ActiveRecord::Base.benchmark("Debug Topic Count", :level => :debug) { Topic.count } ActiveRecord::Base.benchmark("Warn Topic Count", :level => :warn) { Topic.count } @@ -1929,7 +1929,7 @@ class BasicsTest < ActiveRecord::TestCase def test_benchmark_with_use_silence original_logger = ActiveRecord::Base.logger log = StringIO.new - ActiveRecord::Base.logger = Logger.new(log) + ActiveRecord::Base.logger = ActiveSupport::Logger.new(log) ActiveRecord::Base.benchmark("Logging", :level => :debug, :silence => false) { ActiveRecord::Base.logger.debug "Quiet" } assert_match(/Quiet/, log.string) ensure |