Skip to content

Commit

Permalink
perf(core): update remote-playwright-log
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Dec 20, 2023
1 parent 3394ada commit 3578781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/utils/playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class RemotePlaywright {
data = { page: window.location.href, property: property, args: args };
}

logger?.('remote-playwright', JSON.stringify(data));
logger?.('[RP]: ', JSON.stringify(data));

try {
const res = await request('http://localhost:15319/ocs-script-actions', {
Expand All @@ -180,7 +180,7 @@ export class RemotePlaywright {
});
return res;
} catch (e) {
console.error(e);
logger?.('[RP-ERROR]: ', JSON.stringify(data));
return undefined;
}
});
Expand Down

0 comments on commit 3578781

Please sign in to comment.