lib/adhearsion-stats/plugin.rb in adhearsion-stats-0.0.2 vs lib/adhearsion-stats/plugin.rb in adhearsion-stats-0.0.3

- old
+ new

@@ -15,12 +15,13 @@ end init :statsd do AdhearsionStats.setup_logger if Adhearsion.config.statsd.log_metrics - AdhearsionStats.statsd = Statsd.new Adhearsion.config.statsd.host, Adhearsion.config.statsd.port - AdhearsionStats.loaded = true + statsd = Statsd.new Adhearsion.config.statsd.host, Adhearsion.config.statsd.port, UDPSocket.new + AdhearsionStats.statsd = AdhearsionStats::Stactor.new statsd + AdhearsionStats.loaded = true logger.info "Adhearsion-Stats has been loaded" end end class << self