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
  • Loading branch information
tanvipenumudy committed Mar 12, 2024
1 parent 6c95fc9 commit a8dd1c2
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,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 a8dd1c2

Please sign in to comment.