Skip to content

Commit

Permalink
[INLONG-11529][Agent] Print audit detail and return if args is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwwhuang committed Nov 22, 2024
1 parent 9873d79 commit 3068324
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ public static void add(int auditID, String inlongGroupId, String inlongStreamId,
}
if (inlongGroupId == null || inlongStreamId == null) {
LOGGER.error("invalid args inlongGroupId: {}, inlongStreamId: {}", inlongGroupId, inlongStreamId);
return;
}
try {
AuditOperator.getInstance()
.add(auditID, DEFAULT_AUDIT_TAG, inlongGroupId, inlongStreamId, logTime, count, size, version);
} catch (Throwable e) {
LOGGER.error("call audit add error", e);
LOGGER.error("call audit add inlongGroupId: {}, inlongStreamId: {}, auditID {}, error", inlongGroupId,
inlongStreamId, auditID, e);
}
}

Expand Down

0 comments on commit 3068324

Please sign in to comment.