lib/fozzie/classes.rb in fozzie-0.0.14 vs lib/fozzie/classes.rb in fozzie-0.0.15

- old
+ new

@@ -106,10 +106,10 @@ stat << ".#{app}" unless app.nil? timing stat, Time.now.usec end def send_to_socket(message) - return false if Fozzie.c.ip_from_host.blank? + return false if Fozzie.c.ip_from_host.empty? begin self.class.logger.debug {"Statsd: #{message}"} if self.class.logger socket.send(message, 0, Fozzie.c.ip_from_host, Fozzie.c.port) rescue SocketError, RuntimeError, Errno::EADDRNOTAVAIL, Timeout::Error => exc self.class.logger.debug {"Statsd Failure: #{exc.message}"} if self.class.logger \ No newline at end of file