mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use __FILE__ and __LINE__ for BufferedLogger severity methods
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
a8077355ed
commit
01919cee5f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue