lib/benchmark/http/command/spider.rb in benchmark-http-0.15.0 vs lib/benchmark/http/command/spider.rb in benchmark-http-0.15.1

- old
+ new

@@ -22,10 +22,11 @@ require 'async/await' require 'samovar' require 'uri' +require 'console' module Benchmark module HTTP module Command class Spider < Samovar::Command @@ -39,10 +40,10 @@ end many :urls, "One or more hosts to benchmark" def log(method, url, response) - Async.logger.call(self, severity: (response.failure? ? :warn : :info)) do |buffer| + Console.logger.call(self, severity: (response.failure? ? :warn : :info)) do |buffer| buffer.puts "#{method} #{url} -> #{response.version} #{response.status} (#{response.body&.length || 'unspecified'} bytes)" response.headers.each do |key, value| buffer.puts "\t#{key}: #{value}" end if @options[:headers]