lib/tee_logger.rb in tee_logger-3.0.2 vs lib/tee_logger.rb in tee_logger-3.0.3
- old
+ new
@@ -102,10 +102,10 @@
if block_given?
disable(logdev_name)
yield
enable(logdev_name)
else
- logdev_instance(logdev_name).formatter = proc { |_, _, _, _| '' }
+ logdev_instance(logdev_name).formatter = FORMATTER_FOR_DISABLING
end
end
# @param logdev_name [String, Symbol]
def enable(logdev_name)