= private = protected
silence()
Silences the logger for the duration of the block.
# File actionpack/lib/action_controller/benchmarking.rb, line 38 def silence old_logger_level, logger.level = logger.level, Logger::ERROR if logger yield ensure logger.level = old_logger_level if logger end