diff --git a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/ProcessNotification.java b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/ProcessNotification.java index 8690846eac93cc9ce9f55fe801be021551bddb80..8b7c0dc49e18969859b2a268b2ca1a55b11ef16a 100644 --- a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/ProcessNotification.java +++ b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/ProcessNotification.java @@ -82,7 +82,11 @@ public class ProcessNotification { if (!response.isSuccessCode()) { telemetryClient.trackRequest(requestTelemetry); - throw new Exception(NOT_ACKNOWLEDGE); + if(message.getDeliveryCount()>8){ + LOGGER.info("Message delivery status is 'Abandon' with notificationId: {}, Count: {}", notificationContent.getNotificationId(), message.getDeliveryCount()); + } else { + LOGGER.error(NOT_ACKNOWLEDGE); + } }else{ requestTelemetry.setResponseCode("200"); requestTelemetry.setSuccess(true);