FANNG1 commented on code in PR #5580:
URL: https://github.com/apache/gravitino/pull/5580#discussion_r1843129050


##########
core/src/main/java/org/apache/gravitino/audit/AuditLog.java:
##########
@@ -124,12 +128,32 @@ public interface AuditLog {
   long timestamp();
 
   /**
-   * The status of the operation.
-   *
+   * @deprecated 0.8.0 The status of the operation.
    * @return operation status.
    */
+  @Deprecated
   Status status();
 
+  /** @since 0.8.0 */
+  default String remoteAddr() {
+    return "unknown";
+  }
+
+  /** @since 0.8.0 */
+  default OperationStatus operationStatus() {
+    return OperationStatus.UNKNOWN;
+  }
+
+  /** @since 0.8.0 */
+  default OperationType operationType() {
+    return OperationType.UNKNOWN;
+  }
+
+  /** @since 0.8.0 */
+  default Map<String, String> customData() {

Review Comment:
   The user had to modify the event to pass customized data,  without this 
interface, the user had to do more custom code.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to