This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new b6cd0bd Enable debug logging for test failing intermittently in CI b6cd0bd is described below commit b6cd0bd0139cb335363d32dc5ac9fa0088645b39 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 92bda85..2ee37dc 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 jakarta.websocket.ClientEndpointConfig; import jakarta.websocket.ClientEndpointConfig.Configurator; @@ -115,10 +117,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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org