lib/duck_puncher.rb in duck_puncher-2.11.0 vs lib/duck_puncher.rb in duck_puncher-2.12.0

- old
+ new

@@ -54,24 +54,21 @@ end nil end def punch_all! - log.warn 'Punching all ducks! Watch out!' + log.warn 'Punching all ducks!' Ducks.list.each &:punch end def register(*args) Ducks.list << Duck.new(*args) end end - # @description Default logger - # @example Silence logging - # - # `DuckPuncher.log.level = Logger::ERROR` - # self.log = Logger.new(STDOUT).tap do |config| config.level = Logger::INFO config.formatter = proc { |*args| "#{args.first}: #{args.last.to_s}\n" } end + + log.level = Logger::ERROR end