lib/sniffer/adapters/ethon_adapter.rb in sniffer-0.3.2 vs lib/sniffer/adapters/ethon_adapter.rb in sniffer-0.4.0
- old
+ new
@@ -64,11 +64,11 @@
@data_item.response = Sniffer::DataItem::Response.new(status: status,
headers: hash_headers,
body: @response_body,
timing: bm)
- @data_item.log
+ Sniffer.notify_response(@data_item)
end
Ethon.logger.debug { "ETHON: performed #{log_inspect}" } if Ethon.logger.debug?
complete
@@ -80,8 +80,8 @@
end
end
end
if defined?(::Ethon::Easy)
- Ethon::Easy::Http.send(:include, Sniffer::Adapters::EthonAdapter::Http)
- Ethon::Easy::Operations.send(:include, Sniffer::Adapters::EthonAdapter::Operations)
+ Ethon::Easy::Http.include Sniffer::Adapters::EthonAdapter::Http
+ Ethon::Easy::Operations.include Sniffer::Adapters::EthonAdapter::Operations
end