Skip to content

Commit

Permalink
split audit messages by transport type
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Mierzwa <[email protected]>
  • Loading branch information
MaciejMierzwa committed Nov 7, 2023
1 parent bac341d commit 893f8b9
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,16 @@ private void beforeTest(String methodName) {
}

public void onAuditMessage(AuditMessage auditMessage) {
currentTestAuditMessages.add(auditMessage);
log.debug("New audit message received '{}', total number of audit messages '{}'.", auditMessage, currentTestAuditMessages.size());
if(auditMessage.getAsMap().keySet().contains("audit_transport_headers")) {
if (log.isDebugEnabled()) {
log.debug("New transport audit message received '{}', total number of transport audit messages '{}'.", auditMessage, currentTransportTestAuditMessages.size());
}
currentTransportTestAuditMessages.add(auditMessage);
} else {
if (log.isDebugEnabled()) {
log.debug("New audit message received '{}', total number of audit messages '{}'.", auditMessage, currentTestAuditMessages.size());
}
currentTestAuditMessages.add(auditMessage);
}
}
}

0 comments on commit 893f8b9

Please sign in to comment.