From 68b2e1b20966733494c09db0951d8b5d27d6c298 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 27 Oct 2024 23:14:25 -0300 Subject: [PATCH] Update log_job.ts --- apps/api/src/services/logging/log_job.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/services/logging/log_job.ts b/apps/api/src/services/logging/log_job.ts index 4d8ee014..c2aedd13 100644 --- a/apps/api/src/services/logging/log_job.ts +++ b/apps/api/src/services/logging/log_job.ts @@ -70,7 +70,9 @@ export async function logJob(job: FirecrawlJob) { retry: job.retry, }, }; - posthog.capture(phLog); + if(job.mode !== "single_urls") { + posthog.capture(phLog); + } } if (error) { Logger.error(`Error logging job: ${error.message}`);