From a7f8d869e02bc9062af56e3528fc5152be7534a9 Mon Sep 17 00:00:00 2001
From: Sanjeev Pellikoduku <SPellikoduku@slb.com>
Date: Wed, 30 Mar 2022 11:34:44 -0500
Subject: [PATCH] fixed exception

---
 .../provider/azure/messageBus/ProcessNotification.java    | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

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 641d9f574..8b7c0dc49 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
@@ -81,8 +81,12 @@ public class ProcessNotification {
             requestTelemetry.setId(message.getMessageId());                    
                                            
             if (!response.isSuccessCode()) {
-                telemetryClient.trackRequest(requestTelemetry);
-                LOGGER.error(NOT_ACKNOWLEDGE);
+                telemetryClient.trackRequest(requestTelemetry); 
+                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);
-- 
GitLab