HBASE-22759. Extended grant and revoke audit events with caller info (#427)

This commit is contained in:
Andor Molnár 2019-07-30 12:50:57 +02:00 committed by Peter Somogyi
parent 70ec78cf8d
commit 29f8e195ef
1 changed files with 2 additions and 2 deletions

View File

@ -2072,7 +2072,7 @@ public class AccessController implements MasterCoprocessor, RegionCoprocessor,
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 "
@ -2129,7 +2129,7 @@ public class AccessController implements MasterCoprocessor, RegionCoprocessor,
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 "