From cbf7b02a2aec9384a68a13482892b01081f030b5 Mon Sep 17 00:00:00 2001 From: shriharsh Date: Fri, 10 Nov 2017 21:12:00 +0530 Subject: [PATCH] Issue #9 chores: Added more logs to check the issue --- .../src/main/java/org/sunbird/sms/msg91/Msg91SmsProvider.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/keycloak/sms-provider/src/main/java/org/sunbird/sms/msg91/Msg91SmsProvider.java b/keycloak/sms-provider/src/main/java/org/sunbird/sms/msg91/Msg91SmsProvider.java index a3da6f5c..db744742 100644 --- a/keycloak/sms-provider/src/main/java/org/sunbird/sms/msg91/Msg91SmsProvider.java +++ b/keycloak/sms-provider/src/main/java/org/sunbird/sms/msg91/Msg91SmsProvider.java @@ -83,6 +83,8 @@ private boolean sendSms(String mobileNumber, String smsText) { mobileNumber = removePlusFromMobileNumber(mobileNumber); + logger.debug("Msg91SmsProvider - after removePlusFromMobileNumber " + mobileNumber); + if (httpMethod.equals(HttpMethod.GET)) { logger.debug("Inside GET"); path = getCompletePath(BASE_URL + GET_URL, sender, smsRoute, mobileNumber, authKey, country, URLEncoder.encode(smsText, "UTF-8")); @@ -164,6 +166,8 @@ private boolean sendSms(String mobileNumber, String smsText) { } private String removePlusFromMobileNumber(String mobileNumber) { + logger.debug("Msg91SmsProvider - removePlusFromMobileNumber " + mobileNumber); + if (mobileNumber.startsWith("+")){ return mobileNumber.substring(1); }