Add debug logging
Opened this issue · 3 comments
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
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.
First thing next year ;)