fix: add error logging to applier, session polling, and job card clicks

- job_applier.mjs: stack traces on per-job and browser-level errors
- session.mjs: log pending status and poll count during session refresh
- linkedin.mjs: log warning when job card click fails instead of silent catch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 17:30:24 -08:00
parent ed908c91af
commit 1bf676bb80
3 changed files with 10 additions and 3 deletions

View File

@@ -75,7 +75,9 @@ export async function searchLinkedIn(page, search, { onPage } = {}) {
link?.closest('li')?.click() || link?.click();
}, jobId);
await page.waitForTimeout(CLICK_WAIT);
} catch {}
} catch (e) {
console.warn(` ⚠️ Could not click job card ${jobId}: ${e.message}`);
}
// Read title, company, location from detail panel (more accurate)
const meta = await page.evaluate(({ id, track, excludes }) => {