mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-04 11:20:38 +08:00
feat(v1/scrape): add more context to timeout logs
This commit is contained in:
parent
139e2c9a05
commit
0013bdfcb4
@ -60,7 +60,7 @@ export async function scrapeController(
|
||||
try {
|
||||
doc = await waitForJob<Document>(jobId, timeout + totalWait); // TODO: better types for this
|
||||
} catch (e) {
|
||||
logger.error(`Error in scrapeController: ${e}`);
|
||||
logger.error(`Error in scrapeController: ${e}`, { jobId, scrapeId: jobId, startTime });
|
||||
if (
|
||||
e instanceof Error &&
|
||||
(e.message.startsWith("Job wait") || e.message === "timeout")
|
||||
|
Loading…
x
Reference in New Issue
Block a user