From 2028244d9be1b0d6c1583011e5690ad40b0f2f55 Mon Sep 17 00:00:00 2001 From: pasqualespica <36746022+pasqualespica@users.noreply.github.com> Date: Wed, 15 May 2024 17:24:05 +0200 Subject: [PATCH] add log --- .../receipt/pdf/datastore/utils/BizEventToReceiptUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/it/gov/pagopa/receipt/pdf/datastore/utils/BizEventToReceiptUtils.java b/src/main/java/it/gov/pagopa/receipt/pdf/datastore/utils/BizEventToReceiptUtils.java index 0c385d9b..03ae27dc 100644 --- a/src/main/java/it/gov/pagopa/receipt/pdf/datastore/utils/BizEventToReceiptUtils.java +++ b/src/main/java/it/gov/pagopa/receipt/pdf/datastore/utils/BizEventToReceiptUtils.java @@ -87,6 +87,8 @@ public static boolean isBizEventInvalid(BizEvent bizEvent, ExecutionContext cont return true; } + logger.info("[{}] event with id {} discarded because in status {}", context.getFunctionName(), bizEvent.getId(), bizEvent.getEventStatus()); + if (!bizEvent.getEventStatus().equals(BizEventStatusType.DONE)) { logger.debug("[{}] event with id {} discarded because in status {}", context.getFunctionName(), bizEvent.getId(), bizEvent.getEventStatus());