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 logging to the testing server #1505

Merged
merged 1 commit into from
Mar 24, 2020

Conversation

pavelfeldman
Copy link
Member

No description provided.

@@ -66,6 +66,7 @@ class TestServer {
this._wsServer.on('connection', this._onWebSocketConnection.bind(this));
this._server.listen(port);
this._dirPath = dirPath;
this.debugServer = require('debug')('pw:server');
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't you want to have port here as well?

Copy link
Collaborator

Choose a reason for hiding this comment

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

also, can we make it private?

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 actually made it public so that it could be redirected. test harness can say server.debugServer.log = data => output.push(data) and that way we group messages by tests.

@pavelfeldman pavelfeldman merged commit 2225608 into microsoft:master Mar 24, 2020
@pavelfeldman pavelfeldman deleted the log_server branch April 17, 2020 21:10
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