Skip to content

Commit

Permalink
feat(jans-config-api): user mgmt patch endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pujavs committed Apr 8, 2022
1 parent 12a08e1 commit 1180068
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public Response patchUser(@PathParam(ApiConstants.INUM) @NotNull String inum,

// patch user
existingUser = userSrv.patchUser(inum, userPatchRequest);
logger.error("Patched user:{}", existingUser);
logger.debug("Patched user:{}", existingUser);

return Response.ok(existingUser).build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public boolean isEqualCollection(List<String> list1, List<String> list2) {
}

public boolean doesObjectContainField(Object object, String fieldName) {
log.error("Check if object:{} contain fieldName:{} ", object, fieldName);
log.debug("Check if object:{} contain fieldName:{} ", object, fieldName);
if(object == null || StringUtils.isEmpty(fieldName)) {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static String getElement(String jsonString, String fieldName) throws Json
}

public static <T> T applyPatch(String patchAsString, T obj) throws JsonPatchException, IOException {
LOG.error("\n\n\n Jackson::applyPatch() - patchAsString:{}, obj:{}", patchAsString, obj );
LOG.debug("Patch details - patchAsString:{}, obj:{}", patchAsString, obj );
JsonPatch jsonPatch = JsonPatch.fromJson(Jackson.asJsonNode(patchAsString));
return applyPatch(jsonPatch, obj);
}
Expand Down

0 comments on commit 1180068

Please sign in to comment.