Commit 9e4afa4b authored by shishir suman's avatar shishir suman
Browse files

changes for adding logs

Showing with 3 additions and 0 deletions
+3 -0
......@@ -102,9 +102,12 @@ public class UserService {
try {
logger.info("Creating user...{} ", body.toPrettyString());
URI uri1 = new URI(BASE_URL + "/user/v1/sso/create");
logger.info("URI1 - {}", uri1);
HttpHeaders headers = getHeader();
logger.info("Request headers - {}", headers);
HttpEntity<JsonNode> httpEntity = new HttpEntity(body, headers);
ResponseEntity<JsonNode> result = restTemplate.postForEntity(uri1, httpEntity, JsonNode.class);
logger.info("result - {}", result);
return result;
} catch (Exception e) {
throw new UserCreationException("User creation failed for sso", ErrorCode.CE_UM_001, e.getMessage());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment