Skip to content

Commit

Permalink
TEMP: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bryophyta committed Aug 28, 2024
1 parent f572d58 commit e2e33fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ingestion-lambda/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export const main = async (event: SQSEvent): Promise<SQSBatchResponse> => {
}));
const responses = await Promise.all(
eventBodies.map(({ sqsMessageId: messageId, snsMessage }) => {
console.log(Object.keys(snsMessage));
console.log(JSON.stringify(snsMessage));

// @ts-expect-error - the lambda types seem to be incorrect
const { Message, messageAttributes } = snsMessage;

Expand Down

0 comments on commit e2e33fd

Please sign in to comment.