remove too verbose logging

This commit is contained in:
Hugo Renard 2022-09-22 11:23:38 +02:00
parent 06e64a8cd9
commit e21c04c533
Signed by: hougo
GPG key ID: 3A285FD470209C59

View file

@ -10,8 +10,6 @@ import java.util.stream.Stream;
import javax.persistence.NoResultException; import javax.persistence.NoResultException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.unboundid.scim2.common.types.GroupResource; import com.unboundid.scim2.common.types.GroupResource;
import com.unboundid.scim2.common.types.Member; import com.unboundid.scim2.common.types.Member;
import com.unboundid.scim2.common.types.Meta; import com.unboundid.scim2.common.types.Meta;
@ -52,12 +50,6 @@ public class GroupAdapter extends Adapter<GroupModel, GroupResource> {
.getGroupMembersStream(session.getContext().getRealm(), group) .getGroupMembersStream(session.getContext().getRealm(), group)
.map(x -> x.getId()) .map(x -> x.getId())
.collect(Collectors.toSet()); .collect(Collectors.toSet());
ObjectMapper Obj = new ObjectMapper();
try {
String jsonStr = Obj.writerWithDefaultPrettyPrinter().writeValueAsString(this.members);
LOGGER.info(jsonStr);
} catch (JsonProcessingException e) {
}
} }
@Override @Override
@ -106,12 +98,6 @@ public class GroupAdapter extends Adapter<GroupModel, GroupResource> {
} }
group.setMeta(meta); group.setMeta(meta);
} }
ObjectMapper Obj = new ObjectMapper();
try {
String jsonStr = Obj.writerWithDefaultPrettyPrinter().writeValueAsString(group);
LOGGER.info(jsonStr);
} catch (JsonProcessingException e) {
}
return group; return group;
} }