http-event-stream icon indicating copy to clipboard operation
http-event-stream copied to clipboard

Add debug logging

Open andywer opened this issue 6 years ago • 3 comments

Follow-up of #12.

andywer avatar Nov 27 '19 08:11 andywer

So I think we should at least protocol these steps/events:

https://github.com/andywer/http-event-stream/blob/master/src/stream.ts#L41 https://github.com/andywer/http-event-stream/blob/master/src/stream.ts#L76 (incl the state of stillInCommentBlock) https://github.com/andywer/http-event-stream/blob/master/src/stream.ts#L81 https://github.com/andywer/http-event-stream/blob/master/src/stream.ts#L85 https://github.com/andywer/http-event-stream/blob/master/src/stream.ts#L89

https://github.com/andywer/http-event-stream/blob/master/src/stream.ts#L107 https://github.com/andywer/http-event-stream/blob/master/src/stream.ts#L110

pke avatar Dec 05 '19 00:12 pke

Looks like you gave this some thought already! Would you mind contributing a PR? 🙂

I would just npm install debug and use it to log what you highlighted.

andywer avatar Dec 24 '19 12:12 andywer

First thing next year ;)

pke avatar Dec 30 '19 01:12 pke