Permalink
Browse files

Use __FILE__ and __LINE__ for BufferedLogger severity methods

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a807735 commit 01919cee5f3c86f5180a219152829631b26c6c24 @jeremy jeremy committed Oct 13, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/buffered_logger.rb
View
4 activesupport/lib/active_support/buffered_logger.rb
@@ -64,11 +64,11 @@ def add(severity, message = nil, progname = nil, &block)
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

0 comments on commit 01919ce

Please sign in to comment.