commit
c6d3d22f16
|
@ -100,8 +100,7 @@ class GraphiteSink(Sink):
|
||||||
for host in self._hosts:
|
for host in self._hosts:
|
||||||
# flush stats to graphite
|
# flush stats to graphite
|
||||||
try:
|
try:
|
||||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
sock = socket.create_connection(host)
|
||||||
sock.connect(host)
|
|
||||||
sock.sendall(buf.getvalue())
|
sock.sendall(buf.getvalue())
|
||||||
sock.close()
|
sock.close()
|
||||||
except Exception, ex:
|
except Exception, ex:
|
||||||
|
|
Loading…
Reference in New Issue