Skip to content

Commit

Permalink
Skip auditing preprocessing if there's nowhere to log
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Feb 1, 2024
1 parent c75c5cc commit ed9e2bd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ public boolean isAuditTopic(KafkaCluster cluster, String topic) {
}

public void audit(AccessContext acxt, Signal<?> sig) {
if (auditWriters.isEmpty()) return;
if (sig.isOnComplete()) {
extractUser(sig)
.doOnNext(u -> sendAuditRecord(acxt, u))
Expand Down

0 comments on commit ed9e2bd

Please sign in to comment.