Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(checkStatus): further logging

Gergő Móricz82de6d76925e
diff --git a/apps/api/src/scraper/scrapeURL/engines/fire-engine/checkStatus.ts b/apps/api/src/scraper/scrapeURL/engines/fire-engine/checkStatus.ts
index 1de240c5d..768b63a96 100644
--- a/apps/api/src/scraper/scrapeURL/engines/fire-engine/checkStatus.ts
+++ b/apps/api/src/scraper/scrapeURL/engines/fire-engine/checkStatus.ts
@@ -143,7 +143,9 @@ export async function fireEngineCheckStatus(
},
},
async (span) => {
- return await robustFetch({
+ const x = Date.now();
+ meta.logger.debug("Checking status (" + x + ")");
+ const res = await robustFetch({
url: `${production ? fireEngineURL : fireEngineStagingURL}/scrape/${jobId}`,
method: "GET",
logger: logger.child({ method: "fireEngineCheckStatus/robustFetch" }),
@@ -158,6 +160,8 @@ export async function fireEngineCheckStatus(
mock,
abort,
});
+ meta.logger.debug("Status came back (" + x + ")");
+ return res;
},
);