aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2012-09-14 18:52:15 +0400
committerSteve Klabnik <steve@steveklabnik.com>2012-09-15 06:19:55 +0400
commited2fea908a9f8540ac2ea949e3e258ab88769cb1 (patch)
treee6f036c43be107a8e3631e04ed6bcd0d77d21ad5 /activesupport/lib/active_support
parentbb732beba7c0c6f54b12eb774bc78790dd955b65 (diff)
downloadrails-ed2fea908a9f8540ac2ea949e3e258ab88769cb1.tar.gz
rails-ed2fea908a9f8540ac2ea949e3e258ab88769cb1.tar.bz2
rails-ed2fea908a9f8540ac2ea949e3e258ab88769cb1.zip
Deprecate ActiveSupport::Benchmarkable#silence.
Due to its lack of thread safety, we're deprecating this, and it will be removed in Rails 4.1. Fixes #4060.
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/benchmarkable.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/benchmarkable.rb b/activesupport/lib/active_support/benchmarkable.rb
index f149a7f0ed..1b391697e6 100644
--- a/activesupport/lib/active_support/benchmarkable.rb
+++ b/activesupport/lib/active_support/benchmarkable.rb
@@ -46,6 +46,7 @@ module ActiveSupport
# Silence the logger during the execution of the block.
#
def silence
+ ActiveSupport::Deprecation.warn "ActiveSupport::Benchmarkable#silence is deprecated. It will be removed from Rails 4.1."
old_logger_level, logger.level = logger.level, ::Logger::ERROR if logger
yield
ensure