Permalink
Browse files

Merge pull request #5188 from jlxw/patch-1

logger.silence is deprecated
  • Loading branch information...
2 parents f7a76aa + b16eb56 commit c6bd8a9d3ac2ebd5d0af4573d6d799085ac2219b @spastorino spastorino committed Apr 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit c6bd8a9

Please sign in to comment.