From 88cf1a5749bc017202cb7920b1574904ac626455 Mon Sep 17 00:00:00 2001 From: Sanjeev Pellikoduku <SPellikoduku@slb.com> Date: Mon, 4 Apr 2022 05:28:56 -0500 Subject: [PATCH] Fixed exception error --- .../provider/azure/messageBus/ProcessNotification.java | 3 +-- 1 file changed, 1 insertion(+), 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 71fe42260..900fd07d9 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,14 +82,13 @@ public class ProcessNotification { if (!response.isSuccessCode()) { telemetryClient.trackRequest(requestTelemetry); - LOGGER.error(NOT_ACKNOWLEDGE); + throw new Exception(NOT_ACKNOWLEDGE); }else{ requestTelemetry.setResponseCode("200"); requestTelemetry.setSuccess(true); telemetryClient.trackRequest(requestTelemetry); } } catch (Exception e) { - LOGGER.error(String.format("An error occurred performing Notification for message with ID: ", message.getMessageId()), e); throw e; } finally { ThreadScopeContextHolder.getContext().clear(); -- GitLab