aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-13 21:40:12 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-13 21:40:12 +0000
commit01919cee5f3c86f5180a219152829631b26c6c24 (patch)
tree45f5d418b6af2e2303d4ffb3425a9d92438da6f4 /activesupport/lib
parenta8077355edef04d2e1844529d6d146bbe41dfa3a (diff)
downloadrails-01919cee5f3c86f5180a219152829631b26c6c24.tar.gz
rails-01919cee5f3c86f5180a219152829631b26c6c24.tar.bz2
rails-01919cee5f3c86f5180a219152829631b26c6c24.zip
Use __FILE__ and __LINE__ for BufferedLogger severity methods
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/buffered_logger.rb4
1 files changed, 2 insertions, 2 deletions
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