More narrowly focused DEBUG logging for JavadocTransparentProxy flaky test
This commit is contained in:
parent
4c467e328d
commit
148d276967
|
@ -17,6 +17,7 @@ import java.io.File;
|
|||
import java.io.FileWriter;
|
||||
import java.net.URI;
|
||||
import java.net.http.WebSocket;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
|
@ -462,6 +463,21 @@ public class DistributionTests extends AbstractJettyHomeTest
|
|||
File war = distribution.resolveArtifact("org.eclipse.jetty." + env + ".demos:jetty-" + env + "-demo-proxy-webapp:war:" + jettyVersion);
|
||||
distribution.installWarFile(war, "proxy");
|
||||
|
||||
Path loggingProps = distribution.getJettyBase().resolve("resources/jetty-logging.properties");
|
||||
|
||||
String loggingConfig = """
|
||||
# Default for everything is INFO
|
||||
org.eclipse.jetty.LEVEL=INFO
|
||||
# to see full logger names
|
||||
# org.eclipse.jetty.logging.appender.NAME_CONDENSE=false
|
||||
# to see CR LF as-is (not escaped) in output (useful for DEBUG of request/response headers)
|
||||
org.eclipse.jetty.logging.appender.MESSAGE_ESCAPE=false
|
||||
# To enable DEBUG:oejepP.JavadocTransparentProxy
|
||||
org.eclipse.jetty.%s.proxy.ProxyServlet$Transparent.JavadocTransparentProxy.LEVEL=DEBUG
|
||||
""".formatted(env);
|
||||
|
||||
Files.writeString(loggingProps, loggingConfig, StandardCharsets.UTF_8, StandardOpenOption.TRUNCATE_EXISTING);
|
||||
|
||||
int port = distribution.freePort();
|
||||
try (JettyHomeTester.Run run2 = distribution.start("--jpms", "jetty.http.port=" + port, "jetty.server.dumpAfterStart=true"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue