Skip to content

Commit 183b573

Browse files
committed
debug: Add logging
1 parent d243dee commit 183b573

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/actions/find/src/findForUrl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import playwright from 'playwright';
44

55
export async function findForUrl(url: string, sessionStatePath?: string): Promise<Finding[]> {
66
const browser = await playwright.chromium.launch({ headless: true, executablePath: process.env.CI ? '/usr/bin/google-chrome' : undefined });
7+
if (sessionStatePath) {
8+
console.log(`Using session state from ${sessionStatePath}`);
9+
}
710
const context = await browser.newContext({ storageState: !!sessionStatePath ? sessionStatePath : undefined });
811
const page = await context.newPage();
912
await page.goto(url);

0 commit comments

Comments
 (0)