Skip to content

Commit

Permalink
fix: add temporary debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dipratap committed Sep 30, 2024
1 parent 29e9e6d commit 3c31b6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/metatags/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ 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();
Expand Down
1 change: 1 addition & 0 deletions src/metatags/seo-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ 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]);
Expand Down

0 comments on commit 3c31b6e

Please sign in to comment.