Skip to Content Skip to Search

module ActiveSupport::LoggerSilence

Public instance methods

Silences the logger for the duration of the block.

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

Definition files