Skip to content
This repository
Browse code

logger.silence is deprecated

  • Loading branch information...
commit b16eb56280f704de0f1ea80f5ab850d9b17d70f8 1 parent 5c0aba2
jlxw authored February 27, 2012
2  activesupport/lib/active_support/benchmarkable.rb
@@ -35,7 +35,7 @@ def benchmark(message = "Benchmarking", options = {})
35 35
         options[:level] ||= :info
36 36
 
37 37
         result = nil
38  
-        ms = Benchmark.ms { result = options[:silence] ? logger.silence { yield } : yield }
  38
+        ms = Benchmark.ms { result = options[:silence] ? silence { yield } : yield }
39 39
         logger.send(options[:level], '%s (%.1fms)' % [ message, ms ])
40 40
         result
41 41
       else

0 notes on commit b16eb56

Please sign in to comment.
Something went wrong with that request. Please try again.