Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

logger.silence is deprecated

  • Loading branch information...
commit b16eb56280f704de0f1ea80f5ab850d9b17d70f8 1 parent 5c0aba2
@jlxw jlxw authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/benchmarkable.rb
View
2  activesupport/lib/active_support/benchmarkable.rb
@@ -35,7 +35,7 @@ def benchmark(message = "Benchmarking", options = {})
options[:level] ||= :info
result = nil
- ms = Benchmark.ms { result = options[:silence] ? logger.silence { yield } : yield }
+ ms = Benchmark.ms { result = options[:silence] ? silence { yield } : yield }
logger.send(options[:level], '%s (%.1fms)' % [ message, ms ])
result
else
Please sign in to comment.
Something went wrong with that request. Please try again.