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:09:24 UTC
[tomcat] branch 9.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 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new a822603 Enable debug logging for test failing intermittently in CI
a822603 is described below
commit a822603302d8c140a41bb891376a1cfc00f3548b
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 20f22b6..530cdf6 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;
@@ -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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org