Skip to content

Commit

Permalink
debug messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuss committed Apr 9, 2024
1 parent 5cf2d42 commit 95cdd2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/s3-poller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ export class MappedS3Event implements S3Event {
const event = JSON.parse(body) as S3Event | S3TestEvent;
if ("Records" in event && event.Records && event.Records.length) {
acc = acc.concat(...event.Records);
return acc;
}

if ("Event" in event && event.Event && event.Event === "s3:TestEvent") {
console.log("!!! received test event", event);
this.TestMessageReceiptHandle = receiptHandle;
}

Expand Down
2 changes: 2 additions & 0 deletions src/sqs-queue-poller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export class SqsQueuePoller {
this.queueArn
);

console.log("!!! acking messages", receiptHandles);

await Promise.all(
receiptHandles.map(async (receiptHandle) => {
await this.client.send(
Expand Down

0 comments on commit 95cdd2b

Please sign in to comment.