ARTEMIS-4557 fix audit logging

This commit is contained in:
Justin Bertram 2024-01-10 09:07:29 -06:00
parent 43166e24ea
commit 42ddf99ca8
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
2 changed files with 8 additions and 1 deletions

View File

@ -2675,4 +2675,11 @@ public interface AuditLogger {
@LogMessage(id = 601771, value = "User {} is getting name on target resource: {}", level = LogMessage.Level.INFO)
void getCurrentTimeMillis(Object source);
static void getProducerWindowSize(Object source) {
BASE_LOGGER.getProducerWindowSize(getCaller(), source);
}
@LogMessage(id = 601772, value = "User {} is getting producerWindowSize on target resource: {}", level = LogMessage.Level.INFO)
void getProducerWindowSize(String user, Object source);
}

View File

@ -324,7 +324,7 @@ public class ClusterConnectionControlImpl extends AbstractControl implements Clu
@Override
public long getProducerWindowSize() {
if (AuditLogger.isBaseLoggingEnabled()) {
AuditLogger.getTopology(this.clusterConnection);
AuditLogger.getProducerWindowSize(this.clusterConnection);
}
clearIO();
try {