Skip to content

Commit

Permalink
adds more agent messages to host process
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisC committed Jul 25, 2024
1 parent 93b4d16 commit 15e94f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/agent/mock-test-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class MockTestRunner {
*/
constructor({ baseUrl, log, mock: config }) {
this.baseUrl = baseUrl;
this.log = console.log;
this.log = log;
this.config = config;
}

Expand Down
4 changes: 3 additions & 1 deletion src/host/cli-run-plan.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async function verboseMiddleware(argv) {

let verbosity;
if (debug) {
verbosity = Object.values(HostMessage);
verbosity = Object.values({ ...HostMessage, ...AgentMessage });
} else if (quiet) {
verbosity = [];
} else {
Expand All @@ -181,6 +181,8 @@ async function verboseMiddleware(argv) {
HostMessage.SERVER_LISTENING,
HostMessage.ADD_SERVER_DIRECTORY,
HostMessage.REMOVE_SERVER_DIRECTORY,
AgentMessage.OPEN_PAGE,
AgentMessage.UNCAUGHT_ERROR,
];
}

Expand Down

0 comments on commit 15e94f2

Please sign in to comment.