aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-07-09 07:58:44 (EDT)
committerThomas Becker2013-07-12 02:40:34 (EDT)
commit6b91b947aba83662b9828d3186d27bd523cde3df (patch)
tree961f5568d0fab6fc61e5bdd44e54c9237abba63b
parentfac202e1ace4c015973cf12b9451a1cda8580ce9 (diff)
downloadorg.eclipse.jetty.project-6b91b947aba83662b9828d3186d27bd523cde3df.zip
org.eclipse.jetty.project-6b91b947aba83662b9828d3186d27bd523cde3df.tar.gz
org.eclipse.jetty.project-6b91b947aba83662b9828d3186d27bd523cde3df.tar.bz2
ProxySPDYToHTTPLoadTest add debug logging
-rw-r--r--jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/proxy/ProxySPDYToHTTPLoadTest.java6
-rw-r--r--jetty-spdy/spdy-http-server/src/test/resources/jetty-logging.properties1
2 files changed, 7 insertions, 0 deletions
diff --git a/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/proxy/ProxySPDYToHTTPLoadTest.java b/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/proxy/ProxySPDYToHTTPLoadTest.java
index bd5ecad..7679160 100644
--- a/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/proxy/ProxySPDYToHTTPLoadTest.java
+++ b/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/proxy/ProxySPDYToHTTPLoadTest.java
@@ -56,6 +56,8 @@ import org.eclipse.jetty.spdy.server.http.SPDYTestUtils;
import org.eclipse.jetty.util.Callback;
import org.eclipse.jetty.util.Fields;
import org.eclipse.jetty.util.IO;
+import org.eclipse.jetty.util.log.Log;
+import org.eclipse.jetty.util.log.Logger;
import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.junit.After;
import org.junit.Before;
@@ -74,6 +76,7 @@ import static org.junit.Assert.assertThat;
@RunWith(value = Parameterized.class)
public class ProxySPDYToHTTPLoadTest
{
+ private static final Logger LOG = Log.getLogger(ProxySPDYToHTTPLoadTest.class);
@Rule
public final TestWatcher testName = new TestWatcher()
{
@@ -239,6 +242,7 @@ public class ProxySPDYToHTTPLoadTest
@Override
public void onReply(Stream stream, ReplyInfo replyInfo)
{
+ LOG.debug("Got reply: {}", replyInfo );
Fields headers = replyInfo.getHeaders();
assertThat("response comes from the given server", headers.get(serverIdentificationString),
is(notNullValue()));
@@ -251,6 +255,7 @@ public class ProxySPDYToHTTPLoadTest
result.write(dataInfo.asBytes(true), 0, dataInfo.length());
if (dataInfo.isClose())
{
+ LOG.debug("Got last dataFrame: {}", dataInfo);
assertThat("received data matches send data", data, is(result.toString()));
dataLatch.countDown();
}
@@ -261,6 +266,7 @@ public class ProxySPDYToHTTPLoadTest
assertThat("reply has been received", replyLatch.await(5, TimeUnit.SECONDS), is(true));
assertThat("data has been received", dataLatch.await(5, TimeUnit.SECONDS), is(true));
+ LOG.debug("Successfully received response");
}
private class TestServerHandler extends DefaultHandler
diff --git a/jetty-spdy/spdy-http-server/src/test/resources/jetty-logging.properties b/jetty-spdy/spdy-http-server/src/test/resources/jetty-logging.properties
index 30da0a8..2a361d4 100644
--- a/jetty-spdy/spdy-http-server/src/test/resources/jetty-logging.properties
+++ b/jetty-spdy/spdy-http-server/src/test/resources/jetty-logging.properties
@@ -5,4 +5,5 @@ org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog
#org.eclipse.jetty.spdy.LEVEL=DEBUG
#org.eclipse.jetty.client.LEVEL=DEBUG
#org.eclipse.jetty.spdy.server.http.ReferrerPushStrategy.LEVEL=DEBUG
+org.eclipse.jetty.spdy.server.proxy.LEVEL=DEBUG
#org.mortbay.LEVEL=DEBUG