From e559f5c1d428e28c415b99a8b5073e4b9bff7f0d Mon Sep 17 00:00:00 2001 From: Saloni <103189799+saloni041@users.noreply.github.com> Date: Wed, 7 Feb 2024 12:58:50 +0530 Subject: [PATCH] PFM-4855 --- .../web/notification/sms/consumer/SmsNotificationListener.java | 2 -- .../org/egov/web/notification/sms/service/BaseSMSService.java | 1 - 2 files changed, 3 deletions(-) diff --git a/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/consumer/SmsNotificationListener.java b/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/consumer/SmsNotificationListener.java index 53744c66e..2a1bbba68 100644 --- a/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/consumer/SmsNotificationListener.java +++ b/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/consumer/SmsNotificationListener.java @@ -76,11 +76,9 @@ public void process(HashMap consumerRecord) { if (!StringUtils.isEmpty(expiredSmsTopic)) kafkaTemplate.send(expiredSmsTopic, request); } else { - log.info("Call from inside if condition"); smsService.sendSMS(request.toDomain()); } } else { - log.info("Call outside"); smsService.sendSMS(request.toDomain()); } } diff --git a/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/service/BaseSMSService.java b/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/service/BaseSMSService.java index af4e33904..6a5d68310 100644 --- a/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/service/BaseSMSService.java +++ b/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/service/BaseSMSService.java @@ -89,7 +89,6 @@ public void sendSMS(Sms sms) { mobileNumber = mobileNumber.substring(0, 2) + mobileNumber.substring(6); SmsSaveRequest smsSaveRequest = SmsSaveRequest.builder().id(id).mobileNumber(mobileNumber).message(sms.getMessage()) .category(sms.getCategory()).templateId(sms.getTemplateId()).tenantId(sms.getTenantId()).createdtime(System.currentTimeMillis()).build(); - log.info(mobileNumber); producer.push(smsProperties.getSaveSmsTopic(), smsSaveRequest); } submitToExternalSmsService(sms);