You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2023/02/15 21:32:57 UTC

[maven-integration-testing] branch master updated: No logic change, just improve logging (#241)

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

cstamas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git


The following commit(s) were added to refs/heads/master by this push:
     new b003b0121 No logic change, just improve logging (#241)
b003b0121 is described below

commit b003b01212f51d2478f03747b8ab89c2c75acb27
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Wed Feb 15 22:32:51 2023 +0100

    No logic change, just improve logging (#241)
    
    This IT helped a lot to figure out problems around parallel deploy,
    and I had locally applied these changes to improve ability to
    track down what is actually happening on server side.
---
 .../it/MavenITmng4470AuthenticatedDeploymentToProxyTest.java   | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4470AuthenticatedDeploymentToProxyTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4470AuthenticatedDeploymentToProxyTest.java
index f3a38ae43..ba943106e 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4470AuthenticatedDeploymentToProxyTest.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4470AuthenticatedDeploymentToProxyTest.java
@@ -84,7 +84,8 @@ public class MavenITmng4470AuthenticatedDeploymentToProxyTest
             public void handle( String target, Request baseRequest, HttpServletRequest request,
                                 HttpServletResponse response )
             {
-                System.out.println( "Handling " + request.getMethod() + " " + request.getRequestURL() );
+                String tn = Thread.currentThread().getName();
+                System.out.println( tn + " Handling (proxy) " + request.getMethod() + " " + request.getRequestURL() );
 
                 String auth = request.getHeader( "Proxy-Authorization" );
                 if ( auth != null )
@@ -92,7 +93,7 @@ public class MavenITmng4470AuthenticatedDeploymentToProxyTest
                     auth = auth.substring( auth.indexOf( ' ' ) + 1 ).trim();
                     auth = new String( Base64.getDecoder().decode( auth ), StandardCharsets.US_ASCII );
                 }
-                System.out.println( "Proxy-Authorization: " + auth );
+                System.out.println( tn + " Proxy-Authorization: " + auth );
 
                 if ( !"proxyuser:proxypass".equals( auth ) )
                 {
@@ -109,6 +110,7 @@ public class MavenITmng4470AuthenticatedDeploymentToProxyTest
                 deployedResource.contentLength = request.getHeader( "Content-Length" );
 
                 deployedResources.add( deployedResource );
+                System.out.println( tn + " Done (proxy) " + request.getMethod() + " " + request.getRequestURL() );
             }
         };
 
@@ -118,7 +120,8 @@ public class MavenITmng4470AuthenticatedDeploymentToProxyTest
             public void handle( String target, Request baseRequest, HttpServletRequest request,
                                 HttpServletResponse response )
             {
-                System.out.println( "Handling " + request.getMethod() + " " + request.getRequestURL() );
+                String tn = Thread.currentThread().getName();
+                System.out.println( tn + " Handling (repos) " + request.getMethod() + " " + request.getRequestURL() );
 
                 if ( "PUT".equalsIgnoreCase( request.getMethod() ) )
                 {
@@ -140,6 +143,7 @@ public class MavenITmng4470AuthenticatedDeploymentToProxyTest
                 deployedResource.contentLength = request.getHeader( "Content-Length" );
 
                 deployedResources.add( deployedResource );
+                System.out.println( tn + " Done (repos) " + request.getMethod() + " " + request.getRequestURL() );
             }
         };