This method is deprecated or moved on the latest stable version.
The last existing version (v3.2.13) is shown here.
silence(temporary_level = Logger::ERROR)
public
Silences the logger for the duration of the block.
# File activesupport/lib/active_support/core_ext/logger.rb, line 41
def silence(temporary_level = Logger::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