aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/log_subscriber
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-12-19 18:41:37 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-12-19 18:41:37 -0800
commit572c3d517899524c2a7c4c84ad9646660168d4cd (patch)
tree329ce7848ee8df458238497fb9a91766d15ef6c3 /activesupport/lib/active_support/log_subscriber
parent9d6e52b55ec67d0573a0bb1900b13f38e18f7eba (diff)
downloadrails-572c3d517899524c2a7c4c84ad9646660168d4cd.tar.gz
rails-572c3d517899524c2a7c4c84ad9646660168d4cd.tar.bz2
rails-572c3d517899524c2a7c4c84ad9646660168d4cd.zip
* BufferedLogger is deprecated. Use ActiveSupport::Logger, or the logger
from Ruby stdlib.
Diffstat (limited to 'activesupport/lib/active_support/log_subscriber')
-rw-r--r--activesupport/lib/active_support/log_subscriber/test_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/log_subscriber/test_helper.rb b/activesupport/lib/active_support/log_subscriber/test_helper.rb
index dcfcf0b63c..7b7fc81e6c 100644
--- a/activesupport/lib/active_support/log_subscriber/test_helper.rb
+++ b/activesupport/lib/active_support/log_subscriber/test_helper.rb
@@ -50,7 +50,7 @@ module ActiveSupport
end
class MockLogger
- include ActiveSupport::BufferedLogger::Severity
+ include ActiveSupport::Logger::Severity
attr_reader :flush_count
attr_accessor :level
@@ -73,7 +73,7 @@ module ActiveSupport
@flush_count += 1
end
- ActiveSupport::BufferedLogger::Severity.constants.each do |severity|
+ ActiveSupport::Logger::Severity.constants.each do |severity|
class_eval <<-EOT, __FILE__, __LINE__ + 1
def #{severity.downcase}?
#{severity} >= @level