feat(sitemap): change sitemap logging

This commit is contained in:
Móricz Gergő 2025-01-23 12:06:50 +01:00
parent d3518e85a8
commit 6557365149
2 changed files with 4 additions and 1 deletions

View File

@ -632,6 +632,10 @@ export class WebCrawler {
}
}
if (this.sitemapsHit.size >= 20) {
this.logger.warn("Sitemap limit hit!", { crawlId: this.jobId, url: this.baseUrl });
}
return sitemapCount;
}
}

View File

@ -22,7 +22,6 @@ export async function getLinksFromSitemap(
sitemapsHit: Set<string>,
): Promise<number> {
if (sitemapsHit.size >= 20) {
logger.warn("Sitemap limit hit, not hitting this one.");
return 0;
}