Skip to content

Commit

Permalink
HDDS-10475. Refine audit logging for bucket creation (apache#6366)
Browse files Browse the repository at this point in the history
(cherry picked from commit a8dd1c2)
  • Loading branch information
tanvipenumudy authored and Maksim Myskov committed Apr 3, 2024
1 parent c78986c commit b51a6f0
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,17 @@ public Map<String, String> toAuditMap() {
auditMap.put(OzoneConsts.USED_BYTES, String.valueOf(this.usedBytes));
auditMap.put(OzoneConsts.USED_NAMESPACE,
String.valueOf(this.usedNamespace));
auditMap.put(OzoneConsts.OWNER, this.owner);
auditMap.put(OzoneConsts.REPLICATION_TYPE,
(this.defaultReplicationConfig != null) ?
String.valueOf(this.defaultReplicationConfig.getType()) : null);
auditMap.put(OzoneConsts.REPLICATION_CONFIG,
(this.defaultReplicationConfig != null) ?
this.defaultReplicationConfig.getReplicationConfig()
.getReplication() : null);
auditMap.put(OzoneConsts.QUOTA_IN_BYTES, String.valueOf(this.quotaInBytes));
auditMap.put(OzoneConsts.QUOTA_IN_NAMESPACE,
String.valueOf(this.quotaInNamespace));
return auditMap;
}

Expand Down

0 comments on commit b51a6f0

Please sign in to comment.