Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

chore(workers): Add extra logging for browser connection errors

Mohamed Bassem393d097c965c
diff --git a/apps/workers/crawlerWorker.ts b/apps/workers/crawlerWorker.ts
index c8141d39..70fda993 100644
--- a/apps/workers/crawlerWorker.ts
+++ b/apps/workers/crawlerWorker.ts
@@ -115,7 +115,7 @@ async function launchBrowser() {
globalBrowser = await startBrowserInstance();
} catch (e) {
logger.error(
- "[Crawler] Failed to connect to the browser instance, will retry in 5 secs",
+ `[Crawler] Failed to connect to the browser instance, will retry in 5 secs: ${(e as Error).stack}`,
);
if (isShuttingDown) {
logger.info("[Crawler] We're shutting down so won't retry.");