You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2022/07/22 17:52:03 UTC

[activemq-artemis] 09/42: avoid NPE in a unit test due to audit loggers still being enabled, unlike prior test logging config

This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch new-logging
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git

commit 994d69ce155772eb5a51a2931da3a46c1c16f5c4
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Tue Jul 12 17:58:23 2022 +0100

    avoid NPE in a unit test due to audit loggers still being enabled, unlike prior test logging config
---
 tests/config/log4j2-tests-config-CI.properties | 4 ++++
 tests/config/log4j2-tests-config.properties    | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/tests/config/log4j2-tests-config-CI.properties b/tests/config/log4j2-tests-config-CI.properties
index 4ecac73492..b912c9aeeb 100644
--- a/tests/config/log4j2-tests-config-CI.properties
+++ b/tests/config/log4j2-tests-config-CI.properties
@@ -19,6 +19,10 @@ rootLogger = INFO, Console, Test
 logger.activemq.name=org.apache.activemq
 logger.activemq.level=INFO
 
+# Audit logger: to enable audit logs change the level to INFO
+logger.audit.name=org.apache.activemq.audit
+logger.audit.level=OFF
+
 # quorum logger levels
 logger.curator.name=org.apache.curator
 logger.curator.level=WARN
diff --git a/tests/config/log4j2-tests-config.properties b/tests/config/log4j2-tests-config.properties
index b6dc034c43..982efa2741 100644
--- a/tests/config/log4j2-tests-config.properties
+++ b/tests/config/log4j2-tests-config.properties
@@ -19,6 +19,10 @@ rootLogger = INFO, Console, Test
 logger.activemq.name=org.apache.activemq
 logger.activemq.level=INFO
 
+# Audit logger: to enable audit logs change the level to INFO
+logger.audit.name=org.apache.activemq.audit
+logger.audit.level=OFF
+
 # Console appender
 appender.console.type=Console
 appender.console.name=Console