Skip to content
Snippets Groups Projects
Commit 5145abc0 authored by Sanjeev-SLB's avatar Sanjeev-SLB
Browse files

Fixed error exception

parent 21f511a9
No related branches found
No related tags found
3 merge requests!232Update os-core-lib-azure,!231initial commit,!198Fixed error exception
Pipeline #100412 passed with warnings
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment