Fix logging with WARN, INFO, DEBUG level

This commit is contained in:
Lars Kanis 2022-12-02 14:03:45 +01:00
parent 40661830a4
commit ff6d6cce22

View File

@ -8,9 +8,9 @@ class Logger < ::Logger
end
def add(severity, *args, &block)
super
return unless [Logger::FATAL, Logger::ERROR].include?(severity)
@counters[severity] ||= block ? block.call : args.first
super
end
def had_logged?(severity)