Skip to content

Commit

Permalink
Audit: Skip preprocessing if there's nowhere to log (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean authored Feb 17, 2024
1 parent 7b44dd3 commit a8d111e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ 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 a8d111e

Please sign in to comment.