module ActiveSupport::LoggerSilence

Public Instance Methods

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

Silences the logger for the duration of the block.

© 2004–2020 David Heinemeier Hansson
Licensed under the MIT License.