lib/statsd/statsd.rb
# A namespace to prepend to all statsd calls.
A namespace to prepend to all statsd calls.
A namespace to prepend to all statsd calls .
def send_to_socket(message)
      self.class.logger.debug { "Statsd: #{message}" } if self.class.logger
      socket.send(message, 0, @host, @port)
    rescue => boom
      self.class.logger.error { "Statsd: #{boom.class} #{boom}" } if self.class.logger
      nil
    end
def send_to_socket ( message ) self . class . logger . debug { "Statsd: #{message}" } if self . class . logger socket . send ( message , 0 , @host , @port ) rescue => boom self . class . logger . error { "Statsd: #{boom.class} #{boom}" } if self . class . logger nil end
A namespace to prepend to all statsd calls.
A namespace to prepend to all statsd calls .
message