lib/sniffer/adapters/excon_adapter.rb in sniffer-0.3.2 vs lib/sniffer/adapters/excon_adapter.rb in sniffer-0.4.0
- old
+ new
@@ -34,16 +34,16 @@
data_item.response = Sniffer::DataItem::Response.new(status: @response.status,
headers: @response.headers,
body: @response.body,
timing: bm)
- data_item.log
+ Sniffer.notify_response(data_item)
end
@response
end
# rubocop:enable Metrics/AbcSize,Metrics/MethodLength
end
end
end
-::Excon::Connection.send(:include, Sniffer::Adapters::ExconAdapter) if defined?(::Excon::Connection)
+::Excon::Connection.include Sniffer::Adapters::ExconAdapter if defined?(::Excon::Connection)