Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanyvu committed Nov 26, 2024
1 parent b350788 commit c4d5e23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/lambda/sinkMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export const handler: Handler<KafkaEvent> = async (event) => {
logError({ type: ErrorType.BADTOPIC });
throw new Error();
case "aws.onemac.migration.cdc":
console.log("IN THIS TOPIC?");
console.log(opensearch.main.transforms, "TRANSFORMSSS");
console.log(topicPartition, "TOPIC PARTITION");
await processAndIndex({
kafkaRecords: event.records[topicPartition],
index,
Expand Down Expand Up @@ -101,6 +98,8 @@ const processAndIndex = async ({
}

if (record.adminChangeType === "update-values") {
console.log("IN UPDATE VALUES");
console.log(record, "RECORD TO CHANGE");
docs.push(record);
}
}
Expand Down

0 comments on commit c4d5e23

Please sign in to comment.