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

chore: add DEBUG=pw:browser* level #1493

Merged
merged 1 commit into from
Mar 23, 2020
Merged

Conversation

pavelfeldman
Copy link
Member

No description provided.

@pavelfeldman pavelfeldman changed the title test: make debugp collect IO (take 2) chore: add DEBUG=pw:browser* level Mar 23, 2020
test.output = [];
const dumpout = data => test.output.push(`\x1b[33m[pw:stdio:out]\x1b[0m ${data}`);
const dumperr = data => test.output.push(`\x1b[31m[pw:stdio:err]\x1b[0m ${data}`);
state._stdout.on('line', dumpout);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we dump std unconditionally, but protocol only when dumpProtocolOnFailure?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not changing the behavior...

@pavelfeldman pavelfeldman merged commit c0c9b7f into microsoft:master Mar 23, 2020
@pavelfeldman pavelfeldman deleted the take2 branch April 17, 2020 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants