Node: add debug logs to _stream_writable

Created on 13 Feb 2020  路  6Comments  路  Source: nodejs/node

Is your feature request related to a problem? Please describe.
In debugging some Node.js stream related code, I'm getting debug logs for the readable stream, but not seeing any for the writable. Upon further investigation I found that there are no debug logs set up in writable stream.

https://github.com/nodejs/node/blob/master/lib/_stream_writable.js

Describe the solution you'd like
Add some nice logging to _stream_writable similar to _stream_readable.

feature request stream

Most helpful comment

Get it, I'll put all the documented events, I may add some extras, as readable stream debug logs.

All 6 comments

I'll work on this one.

Any specific events you want to be covered?

@juanarbol I don't have specifics, except that'd I'd essentially like parity with the _stream_readable debug logs.

Get it, I'll put all the documented events, I may add some extras, as readable stream debug logs.

Thank you @juanarbol !

I've sent the first proposal:

https://github.com/nodejs/node/pull/31937

Was this page helpful?
0 / 5 - 0 ratings

Related issues

srl295 picture srl295  路  3Comments

loretoparisi picture loretoparisi  路  3Comments

Brekmister picture Brekmister  路  3Comments

dfahlander picture dfahlander  路  3Comments

danielstaleiny picture danielstaleiny  路  3Comments