module ActiveSupport::LoggerSilence

def silence(severity = Logger::ERROR)

Silences the logger for the duration of the block.
def silence(severity = Logger::ERROR)
  silencer ? log_at(severity) { yield self } : yield(self)
end