Skip to content

Commit

Permalink
HBASE-22759. Extended grant and revoke audit events with caller info (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnar authored and petersomogyi committed Jul 30, 2019
1 parent 70ec78c commit 29f8e19
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,7 @@ public Void run() throws Exception {

if (AUDITLOG.isTraceEnabled()) {
// audit log should store permission changes in addition to auth results
AUDITLOG.trace("Granted permission " + perm.toString());
AUDITLOG.trace("User {} granted permission {}", caller, perm);
}
} else {
throw new CoprocessorException(AccessController.class, "This method "
Expand Down Expand Up @@ -2129,7 +2129,7 @@ public Void run() throws Exception {

if (AUDITLOG.isTraceEnabled()) {
// audit log should record all permission changes
AUDITLOG.trace("Revoked permission " + perm.toString());
AUDITLOG.trace("User {} revoked permission {}", caller, perm);
}
} else {
throw new CoprocessorException(AccessController.class, "This method "
Expand Down

0 comments on commit 29f8e19

Please sign in to comment.