You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2022/07/12 16:59:08 UTC

[activemq-artemis] branch new-logging updated: 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.

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


The following commit(s) were added to refs/heads/new-logging by this push:
     new 3312a0dc64 avoid NPE in a unit test due to audit loggers still being enabled, unlike prior test logging config
3312a0dc64 is described below

commit 3312a0dc6457cdd896e722b2f58a55996c6f2959
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