Skip to content

Commit 77225d5

Browse files
authored
fix logging (#2534)
1 parent 2355bee commit 77225d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/compass-e2e-tests/helpers/compass.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,13 @@ function getCompassBinPath({ appPath, packagerOptions: { name } }) {
371371
*/
372372
function addDebugger(app) {
373373
const debugClient = debug.extend('webdriver:client');
374+
// debugClient.log starts off empty for some reason
375+
debugClient.log = console.log.bind(console);
374376
const clientProto = Object.getPrototypeOf(app.client);
375377

376378
for (const prop of Object.getOwnPropertyNames(clientProto)) {
377-
if (prop.includes('.')) {
379+
// disable emit logging for now because it is very noisy
380+
if (prop.includes('.') || prop === 'emit') {
378381
continue;
379382
}
380383
const descriptor = Object.getOwnPropertyDescriptor(clientProto, prop);

0 commit comments

Comments
 (0)