Skip to content

Commit

Permalink
feat: temp log add
Browse files Browse the repository at this point in the history
  • Loading branch information
dipratap committed Sep 2, 2024
1 parent 4efb76a commit 0732419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metatags/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +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?.Body?.tags || typeof object.Body.tags !== 'object') {
log.error(`No Scraped tags found in S3 ${key} object with body ${object.Body}`);
log.error(`No Scraped tags found in S3 ${key} object, body ${object.Body}`);
return null;
}
const pageUrl = key.slice(prefix.length - 1).replace('scrape.json', ''); // Remove the prefix and .json suffix
Expand Down

0 comments on commit 0732419

Please sign in to comment.