Skip to content

Commit

Permalink
Issue #9 chores: Added more logs to check the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shriharshs committed Nov 10, 2017
1 parent 2da5c62 commit cbf7b02
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit cbf7b02

Please sign in to comment.