Skip to content

Commit

Permalink
Merge pull request #22 from neemzy/silently-fail
Browse files Browse the repository at this point in the history
Now failing silently if Statsd server is unreachable
  • Loading branch information
omansour authored Feb 3, 2017
2 parents 2aafc1d + 421605d commit dbc7e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/M6Web/Component/Statsd/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbc7e32

Please sign in to comment.