Skip to content

Commit

Permalink
chore(workers): Add extra logging for browser connection errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Nov 21, 2024
1 parent 5533632 commit 393d097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/workers/crawlerWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 393d097

Please sign in to comment.