mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 20:39:18 +00:00
jetty-9: HTTP client: re-enabled debug logging for tests.
This commit is contained in:
parent
199971a989
commit
05a0090dd6
@ -71,6 +71,9 @@ public class HttpClientLoadTest extends AbstractHttpClientServerTest
|
||||
CountDownLatch latch = new CountDownLatch(iterations);
|
||||
List<String> failures = new ArrayList<>();
|
||||
|
||||
int factor = logger.isDebugEnabled() ? 25 : 1;
|
||||
factor *= "http".equalsIgnoreCase(scheme) ? 10 : 1000;
|
||||
|
||||
// Dumps the state of the client if the test takes too long
|
||||
final Thread testThread = Thread.currentThread();
|
||||
client.getScheduler().schedule(new Runnable()
|
||||
@ -90,7 +93,7 @@ public class HttpClientLoadTest extends AbstractHttpClientServerTest
|
||||
}
|
||||
testThread.interrupt();
|
||||
}
|
||||
}, iterations * ("http".equalsIgnoreCase(scheme) ? 10 : 1000), TimeUnit.MILLISECONDS);
|
||||
}, iterations * factor, TimeUnit.MILLISECONDS);
|
||||
|
||||
long begin = System.nanoTime();
|
||||
for (int i = 0; i < iterations; ++i)
|
||||
|
@ -1,3 +1,3 @@
|
||||
org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog
|
||||
#org.eclipse.jetty.LEVEL=DEBUG
|
||||
#org.eclipse.jetty.client.LEVEL=DEBUG
|
||||
org.eclipse.jetty.client.LEVEL=DEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user