edge badge
Methods
S
Instance Public methods
silence(severity = Logger::ERROR)

Silences the logger for the duration of the block.

# File activesupport/lib/active_support/logger_silence.rb, line 30
def silence(severity = Logger::ERROR)
  silencer ? log_at(severity) { yield self } : yield(self)
end