lib/utilrb/logger/silent.rb
# Silences this logger for the duration of the block
Silences this logger for the duration of the block
Silences this logger for the duration of the block
def silent
        current_level, self.level = self.level, Logger::FATAL + 1
        yield
    ensure
        self.level = current_level
    end
def silent current_level , self . level = self . level , Logger :: FATAL + 1 yield ensure self . level = current_level end
Silences this logger for the duration of the block
Silences this logger for the duration of the block