sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1573902 - in /sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster: ClusterTest.java SingleInstanceTest.java
Date Tue, 04 Mar 2014 07:24:03 GMT
Author: stefanegli
Date: Tue Mar  4 07:24:03 2014
New Revision: 1573902

URL: http://svn.apache.org/r1573902
Log:
no-jira : more logging in SingleInstanceTest

Modified:
    sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterTest.java
    sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/SingleInstanceTest.java

Modified: sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterTest.java?rev=1573902&r1=1573901&r2=1573902&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterTest.java
(original)
+++ sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/ClusterTest.java
Tue Mar  4 07:24:03 2014
@@ -393,7 +393,7 @@ public class ClusterTest {
         assertNull(instance2.getClusterViewService().getClusterView()
                 .getInstances().get(0)
                 .getProperty(UUID.randomUUID().toString()));
-        logger.info("testPropertyProviders: start");
+        logger.info("testPropertyProviders: end");
     }
 
     private void assertPropertyValues() {

Modified: sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/SingleInstanceTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/SingleInstanceTest.java?rev=1573902&r1=1573901&r2=1573902&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/SingleInstanceTest.java
(original)
+++ sling/trunk/bundles/extensions/discovery/impl/src/test/java/org/apache/sling/discovery/impl/cluster/SingleInstanceTest.java
Tue Mar  4 07:24:03 2014
@@ -28,6 +28,8 @@ import java.util.List;
 import java.util.Map;
 import java.util.UUID;
 
+import org.apache.log4j.Level;
+import org.apache.log4j.LogManager;
 import org.apache.sling.discovery.ClusterView;
 import org.apache.sling.discovery.InstanceDescription;
 import org.apache.sling.discovery.TopologyEvent;
@@ -51,8 +53,13 @@ public class SingleInstanceTest {
 
     String propertyValue;
 
+    private Level logLevel;
+
     @Before
     public void setup() throws Exception {
+        final org.apache.log4j.Logger discoveryLogger = LogManager.getRootLogger().getLogger("org.apache.sling.discovery");
+        logLevel = discoveryLogger.getLevel();
+        discoveryLogger.setLevel(Level.DEBUG);
         logger.info("setup: creating new standalone instance");
         instance = Instance.newStandaloneInstance("standaloneInstance", true);
         logger.info("setup: creating new standalone instance done.");
@@ -60,6 +67,9 @@ public class SingleInstanceTest {
 
     @After
     public void tearDown() throws Exception {
+        final org.apache.log4j.Logger discoveryLogger = LogManager.getRootLogger().getLogger("org.apache.sling.discovery");
+        discoveryLogger.setLevel(logLevel);
+        LogManager.getRootLogger().setLevel(logLevel);
         logger.info("tearDown: stopping standalone instance");
         instance.stop();
         logger.info("tearDown: stopping standalone instance done");



Mime
View raw message