lib/opentelemetry/sdk/forwarding_logger.rb in opentelemetry-sdk-1.4.0 vs lib/opentelemetry/sdk/forwarding_logger.rb in opentelemetry-sdk-1.4.1
- old
+ new
@@ -33,13 +33,13 @@
raise ArgumentError, "invalid log level: #{level}"
end
end
end
- def add(severity, message = nil, progname = nil)
+ def add(severity, message = nil, progname = nil, &block)
return true if severity < @level
- @logger.add(severity, message, progname)
+ @logger.add(severity, message, progname, &block)
end
def debug(progname = nil, &block)
add(Logger::DEBUG, nil, progname, &block)
end