Skip to content

lib: add debug logs to writable stream - #31937

Closed
juanarbol wants to merge 1 commit into
nodejs:masterfrom
juanarbol:juanarbol/add-debug-logs
Closed

lib: add debug logs to writable stream#31937
juanarbol wants to merge 1 commit into
nodejs:masterfrom
juanarbol:juanarbol/add-debug-logs

Conversation

@juanarbol

@juanarboljuanarbol commented Feb 24, 2020

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label Feb 24, 2020
}

function doWrite(stream, state, writev, len, chunk, encoding, cb) {
debug('Writting');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug('Writing %o', chunk); would be more useful

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you sr, fixing this!

}
state.ended = true;
stream.writable = false;
debug('endWritable', state.ended);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the state.ended will always be true so I'm not sure how useful this log is.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get it!

@rexagod

Copy link
Copy Markdown
Member

ping @juanarbol

@juanarbol

Copy link
Copy Markdown
MemberAuthor

Sorry, I'm gonna return to this soon

@YoDaMa

Copy link
Copy Markdown

@juanarbol saw your mail, got busy, forgot to respond. I can definitely take over this PR.

@juanarbol

juanarbol commented Mar 14, 2020

Copy link
Copy Markdown
MemberAuthor

Moved to #32255! Thanks for contributing @YoDaMa

@juanarbol
juanarbol deleted the juanarbol/add-debug-logs branch January 19, 2021 16:25
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

streamIssues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@juanarbol@rexagod@YoDaMa@nodejs-github-bot