Skip to content

Commit

Permalink
Add logs for successful policy engine update
Browse files Browse the repository at this point in the history
  • Loading branch information
krsoninikhil committed Jan 17, 2025
1 parent 55d6e7c commit 974c50f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ public void setPolicies(ServicePolicies policies) {
if (this.refresher != null) {
this.refresher.saveToCache(usePolicyDeltas ? servicePolicies : policies);
}
LOG.info("New RangerPolicyEngine created with policy count:"+ (usePolicyDeltas? servicePolicies.getPolicies().size() : policies.getPolicies().size()));
}

} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ private void loadPolicy() {
lastUpdatedTimeInMillis = -1;
}
} catch (Exception excp) {
LOG.error("Encountered unexpected exception!!!!!!!!!!!", excp);
LOG.error("Encountered unexpected exception!!!!!!!!!!! Message:" + excp.getMessage() + "Stacktrace: " + excp.getStackTrace().toString(), excp);
}

RangerPerfTracer.log(perf);
Expand Down

0 comments on commit 974c50f

Please sign in to comment.