From 61e10fe65a560ebf740a620c69a5cbbdf938a2bc Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Thu, 2 Mar 2017 09:52:56 -0500 Subject: [PATCH] NO-JIRA Passing the logger manager on spawned VMs through the testsuite --- .../apache/activemq/artemis/tests/util/SpawnedVMSupport.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/util/SpawnedVMSupport.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/util/SpawnedVMSupport.java index 703c84807b..1ed0e73f4c 100644 --- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/util/SpawnedVMSupport.java +++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/util/SpawnedVMSupport.java @@ -101,6 +101,10 @@ public final class SpawnedVMSupport { } } + // The logs will be huge if you don't set this + commandList.add("-Djava.util.logging.manager=org.jboss.logmanager.LogManager"); + commandList.add("-Dlogging.configuration=file:../config/logging.properties"); + commandList.add("-Djava.io.tmpdir=" + System.getProperty("java.io.tmpdir", "./tmp")); commandList.add("-Djava.library.path=" + System.getProperty("java.library.path", "./native/bin"));