From 0013bdfcb4bd63d6901bc3778fea01371c0276db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Mon, 16 Dec 2024 22:42:51 +0100 Subject: [PATCH] feat(v1/scrape): add more context to timeout logs --- apps/api/src/controllers/v1/scrape.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/controllers/v1/scrape.ts b/apps/api/src/controllers/v1/scrape.ts index ddd5da74..f1fe3431 100644 --- a/apps/api/src/controllers/v1/scrape.ts +++ b/apps/api/src/controllers/v1/scrape.ts @@ -60,7 +60,7 @@ export async function scrapeController( try { doc = await waitForJob(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")