Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyVoetman authored Mar 20, 2020
1 parent 286a790 commit d12d5f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ This will be the URL where you host your gitlab server (e.g. https://gitlab.com)
## Debugging
In some cases, the need arises to debug the Http Messeages returned by the Gitlab API. For this need, the adaptor has a built-in `debug mode`. When this mode is enabled, it will tell the adaptor to prevent catching the `GuzzleHttp\Exception\GuzzleException`.

To check for the current state of de adaptor the `isDebugEnabled` method can be called on the adapter. Enabling debug mode can be done with either of the following two options:
To check for the current state of de adaptor the `isDebugEnabled` method can be called on the adapter.

### Instantiation
Enabling debug mode can be done with either of the following two options:

### At instantiation
```php
$adapter = new GitlabAdapter($client, '', true); // Third parameter defines debug mode
```
Expand Down

0 comments on commit d12d5f6

Please sign in to comment.