Merge pull request #829 from mendableai/nsc/prevent-single-url-logs

Remove ph logs for single_urls
This commit is contained in:
Nicolas 2024-10-28 15:47:44 -03:00 committed by GitHub
commit 19ed042181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,9 @@ export async function logJob(job: FirecrawlJob) {
retry: job.retry, retry: job.retry,
}, },
}; };
posthog.capture(phLog); if(job.mode !== "single_urls") {
posthog.capture(phLog);
}
} }
if (error) { if (error) {
Logger.error(`Error logging job: ${error.message}`); Logger.error(`Error logging job: ${error.message}`);