Skip to content

Commit

Permalink
Updated README with the throwConnectionExceptions option
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmoussa committed Mar 19, 2015
1 parent dcb6e42 commit 776c40e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ $statsd2 = StatsD\Client::instance('server2')->configure(array(...));
The StatsD client wait for `ini_get('default_socket_timeout')` seconds when opening the socket by default. To reduce
this timeout, add `'timeout' => <float>` to your config.

The StatsD client will throw a `ConnectionException` if it is unable to send data to the StatsD server. You may choose
to disable these exceptions and log a PHP warning instead if you wish. To do so, include the following in your config:

```
'throwConnectionExceptions' => false
```

If omitted, this option defaults to `true`.

### Counters

```php
Expand Down

0 comments on commit 776c40e

Please sign in to comment.