Skip to content

Commit

Permalink
add notes on debugging requests - closes #47
Browse files Browse the repository at this point in the history
  • Loading branch information
zspecza committed Dec 11, 2015
1 parent 52a44b3 commit d54cf15
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ $ make lint

To lint the source and run the tests:

```
```bash
$ npm test
# or, for optional request logging:
$ NODE_DEBUG=request npm test
```


To create a coverage report:

```
Expand Down
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,16 @@ roots-contentful also provides a convenient view helper called `asset` that allo
img(src!= asset(post.image, {w: 100, h: 100, q: 50}))
```

### Debugging Requests

This extension makes network requests. If you need to log requests for debugging, set your `NODE_DEBUG` environment variable to `request`.

For example, in a `roots compile` command:

```
$ NODE_DEBUG=request roots compile --verbose
```

### License & Contributing

- Details on the license [can be found here](license.md)
Expand Down

0 comments on commit d54cf15

Please sign in to comment.