From 01919cee5f3c86f5180a219152829631b26c6c24 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 13 Oct 2007 21:40:12 +0000 Subject: Use __FILE__ and __LINE__ for BufferedLogger severity methods git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/buffered_logger.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb index 37e6d200cd..c854599e69 100644 --- a/activesupport/lib/active_support/buffered_logger.rb +++ b/activesupport/lib/active_support/buffered_logger.rb @@ -64,11 +64,11 @@ module ActiveSupport end for severity in Severity.constants - class_eval <<-EOT + class_eval <<-EOT, __FILE__, __LINE__ def #{severity.downcase}(message = nil, progname = nil, &block) add(#{severity}, message, progname, &block) end - + def #{severity.downcase}? #{severity} >= @level end -- cgit v1.2.3