Skip to content

Commit 4f90932

Browse files
committed
Improve logging
1 parent 46c6a25 commit 4f90932

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

workers/controller/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ async function handlePurgeRequest(
9292
// sendBatch only allows for a maximum of 100 messages.
9393
const promises: ReturnType<typeof env.CACHE_PURGE_TAG.sendBatch>[] = [];
9494
for (const messageChunks of chunks(messages, 100)) {
95+
console.debug(
96+
"[Cache Purge Request] Send Batch",
97+
messageChunks.map(({ body }) => body),
98+
);
9599
promises.push(env.CACHE_PURGE_TAG.sendBatch(messageChunks));
96100
}
97101

0 commit comments

Comments
 (0)