From 28e461e3f21a5b6a15d7c0a96188adbff1e1205d Mon Sep 17 00:00:00 2001 From: Divyansh Pratap Date: Tue, 1 Oct 2024 01:26:34 +0530 Subject: [PATCH] fix: add temporary debug logs --- src/metatags/handler.js | 1 + src/metatags/seo-checks.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metatags/handler.js b/src/metatags/handler.js index 79b7169e..67be3a8c 100644 --- a/src/metatags/handler.js +++ b/src/metatags/handler.js @@ -80,6 +80,7 @@ export default async function auditMetaTags(message, context) { } 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 94caae5b..6685869b 100644 --- a/src/metatags/seo-checks.js +++ b/src/metatags/seo-checks.js @@ -144,7 +144,6 @@ class SeoChecks { this.checkForMissingTags(url, pageTags); this.checkForTagsLength(url, pageTags); this.checkForH1Count(url, pageTags); - this.log.info(`Found tags ${this.detectedTags.length}`); // store tag data in all tags object to be used in later checks like uniqueness this.addToAllTags(TITLE, pageTags[TITLE]); this.addToAllTags(DESCRIPTION, pageTags[DESCRIPTION]);