Skip to content

Commit

Permalink
feat: adding temp logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dipratap committed Sep 2, 2024
1 parent 20d5a2a commit e5e448c
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?.tags || typeof object.tags !== 'object') {
log.error(`No Scraped tags found in S3 ${key} object, body ${JSON.stringify(object.Body)}`);
log.error(`No Scraped tags found in S3 ${key} object, body ${JSON.stringify(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 e5e448c

Please sign in to comment.