instance method
silence
Ruby on Rails 7.0.10
Since v6.0.6Signature
silence(severity = Logger::ERROR)
Silences the logger for the duration of the block.
Parameters
-
severityopt = Logger::ERROR
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
Defined in activesupport/lib/active_support/logger_silence.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::LoggerSilence