feat(sitemap): change sitemap logging
This commit is contained in:
@@ -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;
|
return sitemapCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ export async function getLinksFromSitemap(
|
|||||||
sitemapsHit: Set<string>,
|
sitemapsHit: Set<string>,
|
||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
if (sitemapsHit.size >= 20) {
|
if (sitemapsHit.size >= 20) {
|
||||||
logger.warn("Sitemap limit hit, not hitting this one.");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user