You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2017/05/08 21:29:54 UTC

curator git commit: Turn off JMX logging

Repository: curator
Updated Branches:
  refs/heads/CURATOR-411 3fa5143d6 -> 4813b7924


Turn off JMX logging


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/4813b792
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/4813b792
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/4813b792

Branch: refs/heads/CURATOR-411
Commit: 4813b7924ecb6f0a2c4836e3e167e220a35f5314
Parents: 3fa5143
Author: randgalt <ra...@apache.org>
Authored: Mon May 8 23:29:49 2017 +0200
Committer: randgalt <ra...@apache.org>
Committed: Mon May 8 23:29:49 2017 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/curator/test/TestingZooKeeperServer.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/4813b792/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperServer.java
----------------------------------------------------------------------
diff --git a/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperServer.java b/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperServer.java
index 225e3f7..58cf8d4 100644
--- a/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperServer.java
+++ b/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperServer.java
@@ -21,7 +21,6 @@ package org.apache.curator.test;
 
 import org.apache.zookeeper.server.quorum.QuorumPeer;
 import org.apache.zookeeper.server.quorum.QuorumPeerConfig;
-import org.apache.zookeeper.server.quorum.QuorumPeerMain;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import java.io.Closeable;
@@ -53,6 +52,8 @@ public class TestingZooKeeperServer implements Closeable
 
     public TestingZooKeeperServer(QuorumConfigBuilder configBuilder, int thisInstanceIndex)
     {
+        System.setProperty("zookeeper.jmx.log4j.disable", "true");  // disable JMX logging
+
         this.configBuilder = configBuilder;
         this.thisInstanceIndex = thisInstanceIndex;
         main = isCluster() ? new TestingQuorumPeerMain() : new TestingZooKeeperMain();