You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Ramachandran (Jira)" <ji...@apache.org> on 2022/09/04 05:34:00 UTC

[jira] [Created] (RANGER-3902) Logging improvement for creating/updating role, policy via Rest API

Ramachandran created RANGER-3902:
------------------------------------

             Summary: Logging improvement for creating/updating role, policy via Rest API
                 Key: RANGER-3902
                 URL: https://issues.apache.org/jira/browse/RANGER-3902
             Project: Ranger
          Issue Type: Improvement
          Components: Ranger
    Affects Versions: 3.0.0
            Reporter: Ramachandran


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

{color:#172b4d}Whenever policy creation fails , we used to log the entire role JSON{color}

{color:#172b4d}We can log roleId/roleName  for roles creation/updation .As well as policyId/policyName for policy creation/updation.{color}

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)