= private = protected
silence(temporary_level = ERROR)
Silences the logger for the duration of the block.
# File activesupport/lib/active_support/buffered_logger.rb, line 25 def silence(temporary_level = ERROR) if silencer begin old_logger_level, self.level = level, temporary_level yield self ensure self.level = old_logger_level end else yield self end end