Module: ActiveSupport::LoggerSilence
Instance Method Summary collapse
-
#silence(severity = Logger::ERROR) ⇒ Object
Silences the logger for the duration of the block.
Instance Method Details
#silence(severity = Logger::ERROR) ⇒ Object
Silences the logger for the duration of the block.
18 19 20 |
# File 'lib/activesupport/logger_silence.rb', line 18 def silence(severity = Logger::ERROR) silencer ? log_at(severity) { yield self } : yield(self) end |