mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-04 15:40:37 +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 {
|
try {
|
||||||
doc = await waitForJob<Document>(jobId, timeout + totalWait); // TODO: better types for this
|
doc = await waitForJob<Document>(jobId, timeout + totalWait); // TODO: better types for this
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.error(`Error in scrapeController: ${e}`);
|
logger.error(`Error in scrapeController: ${e}`, { jobId, scrapeId: jobId, startTime });
|
||||||
if (
|
if (
|
||||||
e instanceof Error &&
|
e instanceof Error &&
|
||||||
(e.message.startsWith("Job wait") || e.message === "timeout")
|
(e.message.startsWith("Job wait") || e.message === "timeout")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user