Skip to content

Commit dbc7e32

Browse files
authored
Merge pull request #22 from neemzy/silently-fail
Now failing silently if Statsd server is unreachable
2 parents 2aafc1d + 421605d commit dbc7e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/M6Web/Component/Statsd/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public function writeDatas($server, $datas)
319319
throw new Exception($server." undefined in the configuration");
320320
}
321321
$s = $this->getServers()[$server];
322-
$fp = fsockopen($s['address'], $s['port']);
322+
$fp = @fsockopen($s['address'], $s['port']);
323323
if ($fp !== false) {
324324
foreach ($datas as $value) {
325325
// write packets

0 commit comments

Comments
 (0)