Skip to content

Commit

Permalink
feat: removing temp info log
Browse files Browse the repository at this point in the history
  • Loading branch information
dipratap committed Sep 4, 2024
1 parent 84d6b55 commit c1ff8ac
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/metatags/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1ff8ac

Please sign in to comment.