You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/10/06 09:00:06 UTC

[httpcomponents-core] branch github_ci_on_win updated (b9f5cfd74 -> 022e841ab)

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a change to branch github_ci_on_win
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git


 discard b9f5cfd74 Enable debug logging in integration tests
     new 022e841ab Enable debug logging in integration tests

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (b9f5cfd74)
            \
             N -- N -- N   refs/heads/github_ci_on_win (022e841ab)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/maven.yml                     | 2 +-
 httpcore5-testing/src/test/resources/log4j2.xml | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


[httpcomponents-core] 01/01: Enable debug logging in integration tests

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch github_ci_on_win
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git

commit 022e841ab05a5708fcf0dc72138075df2a478ad5
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Wed Oct 5 09:50:56 2022 +0200

    Enable debug logging in integration tests
---
 .github/workflows/maven.yml                        |  2 +-
 .../testing/nio/LoggingExceptionCallback.java      |  1 +
 .../hc/core5/testing/nio/Http1IntegrationTest.java | 76 +++++++++++++++++++++-
 .../testing/nio/InternalHttp1ServerTestBase.java   |  8 ++-
 httpcore5-testing/src/test/resources/log4j2.xml    |  8 ++-
 5 files changed, 89 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 1c03a67a4..464c9e9f9 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -57,4 +57,4 @@ jobs:
         distribution: 'temurin'
         java-version: ${{ matrix.java }}
     - name: Build with Maven
-      run: mvn -V --file pom.xml --no-transfer-progress -DtrimStackTrace=false -P-use-toolchains
+      run: mvn -V --file pom.xml --no-transfer-progress -DtrimStackTrace=false -P-use-toolchains -DDtest=Http1IntegrationTest#testHeaderTooLarge -DfailIfNoTests=false
diff --git a/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/LoggingExceptionCallback.java b/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/LoggingExceptionCallback.java
index da097e947..410b2bad8 100644
--- a/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/LoggingExceptionCallback.java
+++ b/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/LoggingExceptionCallback.java
@@ -42,6 +42,7 @@ public class LoggingExceptionCallback implements Callback<Exception> {
 
     @Override
     public void execute(final Exception ex) {
+        ex.printStackTrace(System.out);
         log.error(ex.getMessage(), ex);
     }
 
diff --git a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1IntegrationTest.java b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1IntegrationTest.java
index 663fd6c8a..5046155d8 100644
--- a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1IntegrationTest.java
+++ b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1IntegrationTest.java
@@ -166,7 +166,7 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
 
     @Before
     public void setup() throws Exception {
-        log.debug("Starting up test client");
+        log.debug("Starting up test client: {}", name.getMethodName());
         client = new Http1TestClient(
                 buildReactorConfig(),
                 scheme == URIScheme.HTTPS ? SSLTestContexts.createClientSSLContext() : null, null, null);
@@ -178,7 +178,7 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
 
     @After
     public void cleanup() throws Exception {
-        log.debug("Shutting down test client");
+        log.debug("Shutting down test client: {}", name.getMethodName());
         if (client != null) {
             client.shutdown(TimeValue.ofSeconds(5));
         }
@@ -194,6 +194,7 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
 
     @Test
     public void testSimpleGet() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -221,10 +222,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response1.getCode());
             Assert.assertEquals("Hi there", entity1);
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testSimpleGetConnectionClose() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -255,10 +258,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
                 Assert.assertEquals("Hi there", entity1);
             }
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testSimpleGetIdentityTransfer() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -292,11 +297,13 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response.getCode());
             Assert.assertEquals("Hi there", entity);
         }
+        log.debug("end: {}", name.getMethodName());
 
     }
 
     @Test
     public void testPostIdentityTransfer() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -332,10 +339,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response.getCode());
             Assert.assertEquals("Hi there", entity);
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testPostIdentityTransferOutOfSequenceResponse() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -371,10 +380,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(500, response.getCode());
             Assert.assertEquals("Go away", entity);
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testSimpleGetsPipelined() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -406,10 +417,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response.getCode());
             Assert.assertEquals("Hi there", entity);
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testLargeGet() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -456,10 +469,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         while (t2.hasMoreTokens()) {
             Assert.assertEquals("0123456789abcdef", t2.nextToken());
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testLargeGetsPipelined() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -495,10 +510,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
                 Assert.assertEquals("0123456789abcdef", t.nextToken());
             }
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testBasicPost() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -527,10 +544,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response1.getCode());
             Assert.assertEquals("Hi back", entity1);
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testBasicPostPipelined() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -563,10 +582,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response.getCode());
             Assert.assertEquals("Hi back", entity);
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testHttp10Post() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -596,10 +617,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response1.getCode());
             Assert.assertEquals("Hi back", entity1);
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testNoEntityPost() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -628,10 +651,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response1.getCode());
             Assert.assertEquals("Hi back", entity1);
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testLargePost() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("*", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -664,10 +689,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
                 Assert.assertEquals("0123456789abcdef", t.nextToken());
             }
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testPostsPipelinedLargeResponse() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -704,11 +731,13 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
                 Assert.assertEquals("0123456789abcdef", t.nextToken());
             }
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
 
     @Test
     public void testLargePostsPipelined() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("*", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -745,10 +774,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
                 Assert.assertEquals("0123456789abcdef", t.nextToken());
             }
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testSimpleHead() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -775,10 +806,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response1.getCode());
             Assert.assertNull(result.getBody());
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testSimpleHeadConnectionClose() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -808,10 +841,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
                 Assert.assertNull(result.getBody());
             }
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testHeadPipelined() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -842,10 +877,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response1.getCode());
             Assert.assertNull(result.getBody());
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testExpectationFailed() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("*", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -944,10 +981,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assert.assertNotNull("You shall not pass", result4.getBody());
 
         Assert.assertFalse(ioSession.isOpen());
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testExpectationFailedCloseConnection() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("*", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1010,10 +1049,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assert.assertNotNull("You shall not pass", result1.getBody());
 
         Assert.assertFalse(streamEndpoint.isOpen());
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testDelayedExpectationVerification() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("*", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1116,10 +1157,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertEquals(200, response.getCode());
             Assert.assertNotNull("All is well", result.getBody());
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testPrematureResponse() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("*", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1215,10 +1258,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assert.assertNotNull(response1);
         Assert.assertEquals(HttpStatus.SC_UNAUTHORIZED, response1.getCode());
         Assert.assertNotNull("You shall not pass", result1.getBody());
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testSlowResponseConsumer() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1276,10 +1321,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         while (t1.hasMoreTokens()) {
             Assert.assertEquals("0123456789abcd", t1.nextToken());
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testSlowRequestProducer() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("*", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1332,10 +1379,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         while (t1.hasMoreTokens()) {
             Assert.assertEquals("0123456789abcdef", t1.nextToken());
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testSlowResponseProducer() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("*", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1416,10 +1465,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         while (t1.hasMoreTokens()) {
             Assert.assertEquals("0123456789abcd", t1.nextToken());
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testPipelinedConnectionClose() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello*", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1483,10 +1534,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertTrue(future4.isCancelled());
         } catch (final ExecutionException ignore) {
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testPipelinedInvalidRequest() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello*", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1538,6 +1591,7 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.fail("ExecutionException expected");
         } catch (final CancellationException | ExecutionException ignore) {
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     private static final byte[] GARBAGE = "garbage".getBytes(StandardCharsets.US_ASCII);
@@ -1587,6 +1641,7 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
 
     @Test
     public void testTruncatedChunk() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         final InetSocketAddress serverEndpoint = server.start(new InternalServerHttp1EventHandlerFactory(
                 HttpProcessors.server(),
                 new HandlerFactory<AsyncServerExchangeHandler>() {
@@ -1677,10 +1732,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
             Assert.assertTrue(cause instanceof MalformedChunkCodingException);
             Assert.assertEquals("garbage", entityConsumer.generateContent());
         }
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testExceptionInHandler() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1715,10 +1772,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assert.assertNotNull(response1);
         Assert.assertEquals(500, response1.getCode());
         Assert.assertEquals("Boom", entity1);
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testNoServiceHandler() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         final InetSocketAddress serverEndpoint = server.start();
 
         client.start();
@@ -1736,10 +1795,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assert.assertNotNull(response1);
         Assert.assertEquals(404, response1.getCode());
         Assert.assertEquals("Resource not found", entity1);
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testResponseNoContent() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1774,10 +1835,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assert.assertNotNull(response1);
         Assert.assertEquals(204, response1.getCode());
         Assert.assertNull(result.getBody());
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testAbsentHostHeader() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1817,10 +1880,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assert.assertNotNull(response2);
         Assert.assertEquals(400, response2.getCode());
         Assert.assertEquals("Host header is absent", result2.getBody());
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testMessageWithTrailers() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1879,10 +1944,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         final String digest = TextUtils.toHexString(entityConsumer.getDigest());
         Assert.assertEquals("MD5", map.get("digest-algo"));
         Assert.assertEquals(digest, map.get("digest"));
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testProtocolException() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/boom", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1959,10 +2026,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assert.assertNotNull(response1);
         Assert.assertEquals(HttpStatus.SC_BAD_REQUEST, response1.getCode());
         Assert.assertEquals("Boom!!!", entity1);
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testHeaderTooLarge() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -1992,10 +2061,12 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assert.assertNotNull(response1);
         Assert.assertEquals(431, response1.getCode());
         Assert.assertEquals("Maximum line length limit exceeded", result1.getBody());
+        log.debug("end: {}", name.getMethodName());
     }
 
     @Test
     public void testHeaderTooLargePost() throws Exception {
+        log.debug("start: {}", name.getMethodName());
         server.register("/hello", new Supplier<AsyncServerExchangeHandler>() {
 
             @Override
@@ -2032,6 +2103,7 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assert.assertNotNull(response1);
         Assert.assertEquals(431, response1.getCode());
         Assert.assertEquals("Maximum line length limit exceeded", result1.getBody());
+        log.debug("end: {}", name.getMethodName());
     }
 
 }
diff --git a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/InternalHttp1ServerTestBase.java b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/InternalHttp1ServerTestBase.java
index b1fd93be0..4ae51fc2c 100644
--- a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/InternalHttp1ServerTestBase.java
+++ b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/InternalHttp1ServerTestBase.java
@@ -33,6 +33,7 @@ import org.apache.hc.core5.testing.SSLTestContexts;
 import org.apache.hc.core5.util.TimeValue;
 import org.junit.Rule;
 import org.junit.rules.ExternalResource;
+import org.junit.rules.TestName;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -52,12 +53,15 @@ public abstract class InternalHttp1ServerTestBase {
 
     protected Http1TestServer server;
 
+    @Rule(order = Integer.MIN_VALUE)
+    public TestName name = new TestName();
+
     @Rule
     public ExternalResource serverResource = new ExternalResource() {
 
         @Override
         protected void before() throws Throwable {
-            log.debug("Starting up test server");
+            log.debug("Starting up test server: {}", name.getMethodName());
             server = new Http1TestServer(
                     IOReactorConfig.DEFAULT,
                     scheme == URIScheme.HTTPS ? SSLTestContexts.createServerSSLContext() : null, null, null);
@@ -65,7 +69,7 @@ public abstract class InternalHttp1ServerTestBase {
 
         @Override
         protected void after() {
-            log.debug("Shutting down test server");
+            log.debug("Shutting down test server: {}", name.getMethodName());
             if (server != null) {
                 server.shutdown(TimeValue.ofSeconds(5));
             }
diff --git a/httpcore5-testing/src/test/resources/log4j2.xml b/httpcore5-testing/src/test/resources/log4j2.xml
index 89ecc3750..a33b5e485 100644
--- a/httpcore5-testing/src/test/resources/log4j2.xml
+++ b/httpcore5-testing/src/test/resources/log4j2.xml
@@ -25,6 +25,12 @@
     <Root level="fatal">
       <AppenderRef ref="STDOUT" />
     </Root>
-    <Logger name="org.apache.hc.core5.testing" level="warn"/>
+    <Logger name="org.apache.hc.core5.testing" level="debug"/>
+    <Logger name="org.apache.hc.core5.reactor" level="warn"/>
+    <Logger name="org.apache.hc.core5.http.headers" level="debug"/>
+    <Logger name="org.apache.hc.core5.http.wire" level="debug"/>
+<!--    <Logger name="org.apache.hc.core5.http2.frame" level="debug"/>-->
+<!--    <Logger name="org.apache.hc.core5.http2.frame.payload" level="debug"/>-->
+<!--    <Logger name="org.apache.hc.core5.http2.flow" level="debug"/>-->
   </Loggers>
 </Configuration>
\ No newline at end of file