Console::Adapter::Rails SourceConsoleAdapterRailsLogger

class Logger

Definitions

def silence(severity = Logger::ERROR)

Silences the logger for the duration of the block.

Implementation

def silence(severity = Logger::ERROR)
	current = Fiber[@silence_key]
	Fiber[@silence_key] = severity
	yield(self)
ensure
	Fiber[@silence_key] = current
end