-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74115/
-----------------------------------------------------------

Review request for ranger, Gautam Borad, Abhay Kulkarni, Madhan Neethiraj, 
Nikhil P, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, Sailaja 
Polavarapu, and Velmurugan Periasamy.


Bugs: RANGER-3902
    https://issues.apache.org/jira/browse/RANGER-3902


Repository: ranger


Description
-------

Whenever Role creation fails,we used to log the entire role JSON
 LOG.error("createRole(" + role + ") failed", excp);
Whenever a Role update fails,we used to log the entire role JSON
 LOG.error("updateRole(" + role + ") failed", excp);
Whenever policy creation fails , we used to log the entire policy JSON
 LOG.error("createPolicy(" + policy + ") failed", excp);
Whenever a policy update fails, we used to log the entire policy JSON
 LOG.error("updatePolicy(" + policy + ") failed", excp);
Proposal :

During role/policy, creation/update fails

We can log roleId/roleName  for roles creation/updation .As well as 
policyId/policyName for policy creation/updation.


Diffs
-----

  security-admin/src/main/java/org/apache/ranger/biz/XUserMgr.java 04968ecc5 
  security-admin/src/main/java/org/apache/ranger/rest/RoleREST.java a2ab49a88 
  security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java 
b79188733 


Diff: https://reviews.apache.org/r/74115/diff/1/


Testing
-------

Test this change in the log files


Thanks,

Ramachandran Krishnan

Reply via email to