Skip to content

Commit

Permalink
chore: add logging for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
mythrnr committed Jun 13, 2024
1 parent c9d32ca commit 33ad8d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/dynamo_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export async function createTableAndPutItems(
client: DynamoDBClient,
{ table, items }: CreateAndPut,
) {
console.group()

await createTable(client, table);
console.log("table created");

// NOTE: Running `put` operations concurrently with `Promise.all` would lead to running out of write buffer.
for (const item of items) {
Expand All @@ -27,6 +30,9 @@ export async function createTableAndPutItems(
Item: item,
});
}

console.log("items are put");
console.groupEnd();
}

export function getCredFromEnv(): {
Expand Down

0 comments on commit 33ad8d5

Please sign in to comment.