From c1ff8ac25bbb4f95150a85f5b01be652bd46d7b4 Mon Sep 17 00:00:00 2001 From: Divyansh Pratap Date: Thu, 5 Sep 2024 01:58:22 +0530 Subject: [PATCH] feat: removing temp info log --- src/metatags/handler.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/metatags/handler.js b/src/metatags/handler.js index 53931789..fb79eaf7 100644 --- a/src/metatags/handler.js +++ b/src/metatags/handler.js @@ -20,11 +20,7 @@ import SeoChecks from './seo-checks.js'; async function fetchAndProcessPageObject(s3Client, bucketName, key, prefix, log) { const object = await getObjectFromKey(s3Client, bucketName, key, log); if (!object?.scrapeResult?.tags || typeof object.scrapeResult.tags !== 'object') { - if (object && object.scrapeResult) { - log.error(`No Scraped tags found in S3 ${key} object, body ${JSON.stringify(object)} & type ${typeof object.scrapeResult.tags}`); - } else { - log.error(`No Scraped tags found in S3 ${key} object, body ${JSON.stringify(object)}`); - } + log.error(`No Scraped tags found in S3 ${key} object`); return null; } const pageUrl = key.slice(prefix.length - 1).replace('scrape.json', ''); // Remove the prefix and .json suffix