You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/07/11 14:11:13 UTC

[tomcat] branch 7.0.x updated: Enable debug logging for test failing intermittently in CI

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

markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new 1619e62  Enable debug logging for test failing intermittently in CI
1619e62 is described below

commit 1619e6272c0153ae0a49aca96b16139b34ee564d
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sat Jul 11 14:58:07 2020 +0100

    Enable debug logging for test failing intermittently in CI
---
 .../tomcat/websocket/TestWebSocketFrameClient.java      | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java b/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java
index d1faf7a..ef8adba 100644
--- a/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java
+++ b/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java
@@ -23,6 +23,8 @@ import java.util.Map;
 import java.util.Queue;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
+import java.util.logging.Level;
+import java.util.logging.LogManager;
 
 import javax.websocket.ClientEndpointConfig;
 import javax.websocket.ClientEndpointConfig.Configurator;
@@ -117,10 +119,17 @@ public class TestWebSocketFrameClient extends WebSocketBaseTest {
 
         tomcat.start();
 
-        echoTester("",null);
-        echoTester("/",null);
-        echoTester("/foo",null);
-        echoTester("/foo/",null);
+        LogManager.getLogManager().getLogger("org.apache.coyote").setLevel(Level.ALL);
+        LogManager.getLogManager().getLogger("org.apache.tomcat.util.net").setLevel(Level.ALL);
+        try {
+            echoTester("",null);
+            echoTester("/",null);
+            echoTester("/foo",null);
+            echoTester("/foo/",null);
+        } finally {
+            LogManager.getLogManager().getLogger("org.apache.coyote").setLevel(Level.ALL);
+            LogManager.getLogManager().getLogger("org.apache.tomcat.util.net").setLevel(Level.INFO);
+        }
     }
 
     public void echoTester(String path, ClientEndpointConfig clientEndpointConfig)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org