diff --git a/src/M6Web/Component/Statsd/Client.php b/src/M6Web/Component/Statsd/Client.php index 192342f..e6e32d0 100644 --- a/src/M6Web/Component/Statsd/Client.php +++ b/src/M6Web/Component/Statsd/Client.php @@ -319,7 +319,7 @@ public function writeDatas($server, $datas) throw new Exception($server." undefined in the configuration"); } $s = $this->getServers()[$server]; - $fp = fsockopen($s['address'], $s['port']); + $fp = @fsockopen($s['address'], $s['port']); if ($fp !== false) { foreach ($datas as $value) { // write packets