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:10:34 UTC

[tomcat] branch 8.5.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 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


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

commit 51e1d2fdfefb75a7ca43f7f14fce89e44b4398b0
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 21eeea3..f722e90 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;
@@ -118,10 +120,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