[whatwg/streams] Use "debug" package for logging (#831)

Use the "debug" package https://www.npmjs.com/package/debug for logging.

Debugging can be enabled by setting the DEBUG environment variable, for example

  DEBUG=streams:* npm test

This change converts existed commented-out log statements in
transform-streams.js to use the debug package. No new logging statements are
included in this change.

It is anticipated that new logging statements will be added as and when a need
for them is found.

Closes #499.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/831

-- Commit Summary --

  * Use "debug" package for logging

-- File Changes --

    M reference-implementation/lib/transform-stream.js (20)
    M reference-implementation/package.json (1)

-- Patch Links --

https://github.com/whatwg/streams/pull/831.patch
https://github.com/whatwg/streams/pull/831.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/831

Received on Friday, 6 October 2017 13:08:26 UTC