Skip to content

Commit

Permalink
feat: debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
grand7070 authored Aug 18, 2023
1 parent 44f9883 commit 6e004dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const S3 = new AWS.S3({
const BUCKET = 'BUCKET_NAME';

exports.handler = async (event, context, callback) => {
console.log(`event: ${JSON.stringify(event.Records[0])}`);
if (BUCKET === 'BUCKET' + '_' + 'NAME') {
console.error(`bucket name is not initialize`);
return callback(null, response);
Expand Down Expand Up @@ -105,4 +106,4 @@ exports.handler = async (event, context, callback) => {
}
];
return callback(null, response);
};
};

0 comments on commit 6e004dc

Please sign in to comment.