Skip to content

Commit

Permalink
chore: tidy up debug logs (#1052)
Browse files Browse the repository at this point in the history
removes concats and other tidying up
  • Loading branch information
Yoseph Maguire authored Feb 21, 2020
1 parent b77241c commit d764f02
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 12 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ mqtt pub -t 'hello' -h 'test.mosquitto.org' -m 'from MQTT.js'

See `mqtt help <command>` for the command help.

<a name="debug"></a>
## Debug Logs

MQTT.js uses the [debug](https://www.npmjs.com/package/debug#cmd) package for debugging purposes. To enable debug logs, add the following environment variable on runtime :
```ps
# (example using PowerShell, the VS Code default)
$env:DEBUG='mqttjs*'
```

<a name="api"></a>
## API

Expand Down
Loading

0 comments on commit d764f02

Please sign in to comment.