Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshi0301 committed Dec 2, 2024
1 parent 5ad0253 commit a2ebbb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ private void setPolicyItems(RangerPolicy rangerPolicy, AtlasEntityHeader atlasPo
List<String> users = (List<String>) atlasPolicy.getAttribute("policyUsers");
List<String> groups = (List<String>) atlasPolicy.getAttribute("policyGroups");

LOG.info("PolicyRoles: {}", atlasPolicy.getAttribute("policyRoles"));
List<String> roles = (List<String>) atlasPolicy.getAttribute("policyRoles");

List<RangerPolicyItemAccess> accesses = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,7 @@ public Object getVertexAttributePreFetchCache(AtlasVertex vertex, AtlasAttribute

if (AtlasConfiguration.ATLAS_INDEXSEARCH_ENABLE_FETCHING_NON_PRIMITIVE_ATTRIBUTES.getBoolean() && !attribute.getAttributeType().getTypeCategory().equals(TypeCategory.PRIMITIVE)) {
AtlasPerfMetrics.MetricRecorder nonPrimitiveAttributes = RequestContext.get().startMetricRecord("processNonPrimitiveAttributes");
LOG.info("Fetching non primitive attributes for entity: {}", attribute.getName());
Object mappedVertex = mapVertexToAttribute(vertex, attribute, null, false);
properties.put(attribute.getName(), mappedVertex);
RequestContext.get().endMetricRecord(nonPrimitiveAttributes);
Expand Down

0 comments on commit a2ebbb0

Please sign in to comment.