diff --git a/src/main/java/org/sunbird/user/registration/service/UserRegistrationServiceImpl.java b/src/main/java/org/sunbird/user/registration/service/UserRegistrationServiceImpl.java index 1d28b0ae8..d929c9c2f 100644 --- a/src/main/java/org/sunbird/user/registration/service/UserRegistrationServiceImpl.java +++ b/src/main/java/org/sunbird/user/registration/service/UserRegistrationServiceImpl.java @@ -205,6 +205,7 @@ public SBApiResponse generateOTP(Map otpRequests) { Map apiResponse = outboundRequestHandlerService.fetchResultUsingPost(url, otpRequests, headers); if (Constants.OK.equalsIgnoreCase((String) apiResponse.get(Constants.RESPONSE_CODE))) { + LOGGER.info("OTP Generation successful"); response.setVer("v1"); response.getParams().setStatus(Constants.SUCCESS.toUpperCase()); response.getParams().setResmsgid(UUID.randomUUID().toString()); @@ -220,6 +221,7 @@ public SBApiResponse generateOTP(Map otpRequests) { } } if (StringUtils.isNotBlank(errMsg)) { + LOGGER.error("OTP generation request failed, error message : ",errMsg); response.getParams().setStatus(Constants.FAILED); response.getParams().setErrmsg(errMsg); response.setResponseCode(HttpStatus.INTERNAL_SERVER_ERROR);