We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90317d3 commit be263dfCopy full SHA for be263df
README.md
@@ -161,6 +161,10 @@ const text = await retrier.retry(
161
3. Run `npm install` to setup dependencies
162
4. Run `npm test` to run tests
163
164
+### Debug Output
165
+
166
+Enable debugging output by setting the `DEBUG` environment variable to `"@hwc/retry"` before running.
167
168
## License
169
170
Apache 2.0
src/retrier.js
@@ -22,8 +22,8 @@ const MAX_CONCURRENCY = 1000;
22
* @returns {void}
23
*/
24
function debug(message) {
25
- if (globalThis?.process?.env.DEBUG) {
26
- console.log(message);
+ if (globalThis?.process?.env.DEBUG === "@hwc/retry") {
+ console.debug(message);
27
}
28
29
0 commit comments