Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 01919cee5f3c86f5180a219152829631b26c6c24 1 parent a807735
@jeremy jeremy authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.