More DEBUG on CI build/test

This commit is contained in:
Joakim Erdfelt 2023-01-31 15:09:13 -06:00
parent dfcd21438a
commit b29d589ebd
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import java.io.File;
import java.io.FileWriter; import java.io.FileWriter;
import java.net.URI; import java.net.URI;
import java.net.http.WebSocket; import java.net.http.WebSocket;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
@ -462,6 +463,15 @@ public class DistributionTests extends AbstractJettyHomeTest
File war = distribution.resolveArtifact("org.eclipse.jetty." + env + ".demos:jetty-" + env + "-demo-proxy-webapp:war:" + jettyVersion); File war = distribution.resolveArtifact("org.eclipse.jetty." + env + ".demos:jetty-" + env + "-demo-proxy-webapp:war:" + jettyVersion);
distribution.installWarFile(war, "proxy"); distribution.installWarFile(war, "proxy");
Path loggingProps = distribution.getJettyBase().resolve("resources/jetty-logging.properties");
String loggingConfig = """
org.eclipse.jetty.LEVEL=DEBUG
.LEVEL=DEBUG
""";
Files.writeString(loggingProps, loggingConfig, StandardCharsets.UTF_8, StandardOpenOption.TRUNCATE_EXISTING);
int port = distribution.freePort(); int port = distribution.freePort();
try (JettyHomeTester.Run run2 = distribution.start("--jpms", "jetty.http.port=" + port, "jetty.server.dumpAfterStart=true")) try (JettyHomeTester.Run run2 = distribution.start("--jpms", "jetty.http.port=" + port, "jetty.server.dumpAfterStart=true"))
{ {