Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(connection): separate send/receive debug logging #6017

Merged

Conversation

jsoverson
Copy link
Contributor

This PR splits the logging for send and receive messages in to separate debug channels.

This way it is easier to filter and takes advantage of debug's automatic coloring to make
it easier to visually parse on the command line.

Before PR:
Screen Shot 2020-06-13 at 10 42 23 PM

After PR:
Screen Shot 2020-06-13 at 10 41 39 PM

This PR splits the logging for send and receive messages in to separate debug channels.
This way it is easier to filter and takes advantage of debug's automated coloring to make
it easier to visually parse on the command line
@jsoverson jsoverson force-pushed the puppeteer-protocol-debugging branch from d6e947a to 560f006 Compare June 14, 2020 11:25
@mathiasbynens
Copy link
Member

@jackfranklin Even in light of the plans to make debug platform-agnostic, this patch seems acceptable. Do you agree? PTAL

Copy link
Collaborator

@jackfranklin jackfranklin left a comment

Choose a reason for hiding this comment

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

Great change, thanks!

@jackfranklin jackfranklin merged commit 6e060ce into puppeteer:master Jun 15, 2020
@jsoverson
Copy link
Contributor Author

Thanks @jackfranklin & @mathiasbynens!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants