diff --git a/src/metatags/handler.js b/src/metatags/handler.js index 67be3a8c..ede03e84 100644 --- a/src/metatags/handler.js +++ b/src/metatags/handler.js @@ -75,12 +75,10 @@ export default async function auditMetaTags(message, context) { // Perform SEO checks const seoChecks = new SeoChecks(log); for (const [pageUrl, pageTags] of Object.entries(extractedTags)) { - log.info(`Processing ${pageUrl} with ${JSON.stringify(pageTags)}`); seoChecks.performChecks(pageUrl, pageTags); } seoChecks.finalChecks(); const detectedTags = seoChecks.getDetectedTags(); - log.info(`Detected tags - ${JSON.stringify(detectedTags)}`); // Prepare Audit result const auditResult = { detectedTags, diff --git a/src/metatags/seo-checks.js b/src/metatags/seo-checks.js index 3cc564cd..f4623c2e 100644 --- a/src/metatags/seo-checks.js +++ b/src/metatags/seo-checks.js @@ -92,13 +92,11 @@ class SeoChecks { */ checkForH1Count(url, pageTags) { if (pageTags[H1]?.length > 1) { - console.log('Detected duplicate H1'); this.detectedTags[H1][MULTIPLE_H1_COUNT] ??= []; this.detectedTags[H1][MULTIPLE_H1_COUNT].push({ pageUrl: url, tagContent: JSON.stringify(pageTags[H1]), }); - console.log(`Check detected tags ${JSON.stringify(this.detectedTags[H1])}`); } }