lib/raven/transports/udp.rb in sentry-raven-0.13.1 vs lib/raven/transports/udp.rb in sentry-raven-0.13.2

- old
+ new

@@ -4,12 +4,17 @@ require 'raven/error' module Raven module Transports class UDP < Transport - - def send(auth_header, data, _options = {}) + def send_event(auth_header, data, _options = {}) conn.send "#{auth_header}\n\n#{data}", 0 + end + + def send(auth_header, data, options = {}) + Raven.logger.warn "DEPRECATION WARNING: Calling #send on a Transport will be \ + removed in Raven-Ruby 0.14! Use #send_event instead!" + send_event(auth_header, data, options) end private def conn