Skip to content

Commit 17e46ea

Browse files
committed
Add logging message
1 parent d0cea20 commit 17e46ea

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/updatePrescriptionStatus/src/utils/sqsClient.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ export async function pushPrescriptionToNotificationSQS(
6767

6868
// Only allow through sites and systems that are allowedSitesAndSystems
6969
const allowedSitesAndSystemsData = await checkSiteOrSystemIsNotifyEnabled(data)
70+
logger.info(
71+
"Filtered out sites and suppliers that are not enabled, or are explicitly disabled",
72+
{
73+
numItemsAllowed: allowedSitesAndSystemsData.length
74+
}
75+
)
7076

7177
// SQS batch calls are limited to 10 messages per request, so chunk the data
7278
const batches = chunkArray(allowedSitesAndSystemsData, 10)

0 commit comments

Comments
 (0)