Skip to content

Commit 807eb03

Browse files
debug logging
1 parent a63520c commit 807eb03

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lambdas/supplier-allocator/src/services/supplier-config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,14 @@ export async function filterPacksForLetter(
248248
) {
249249
filteredPackIds.push(packSpecId);
250250
} else {
251+
deps.logger.info({
252+
description: "Evaluating pack specification constraints for letter",
253+
letterVariantId: letterEvent.data.letterVariantId,
254+
packSpecId,
255+
pageCount: letterEvent.data.pageCount,
256+
constraintValue: packSpec.constraints.sheets.value,
257+
constraintOperator: packSpec.constraints.sheets.operator,
258+
});
251259
const isValid = evaluateContraint(
252260
letterEvent.data.pageCount,
253261
packSpec.constraints.sheets.value,

0 commit comments

Comments
 (0)