Skip to content

Commit

Permalink
fix: revert temp debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dipratap committed Sep 30, 2024
1 parent 1db87f9 commit b0f0ea0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/metatags/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions src/metatags/seo-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])}`);
}
}

Expand Down

0 comments on commit b0f0ea0

Please sign in to comment.