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

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


The following commit(s) were added to refs/heads/master by this push:
     new 49e6607fb [SUREFIRE-2182] Log starter implementation on DEBUG level 
(#665)
49e6607fb is described below

commit 49e6607fb3b5a0690cddb4fe371b98f80859c843
Author: Konrad Windszus <[email protected]>
AuthorDate: Thu Jun 22 11:58:45 2023 +0200

    [SUREFIRE-2182] Log starter implementation on DEBUG level (#665)
    
    For fork starter log the underlying configuration class name as well
---
 .../java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index 4286b90ba..aa2bbff6d 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -1166,7 +1166,7 @@ public abstract class AbstractSurefireMojo extends 
AbstractMojo implements Suref
                     (Properties) System.getProperties().clone();
             try {
                 createCopyAndReplaceForkNumPlaceholder(effectiveProperties, 
1).copyToSystemProperties();
-
+                getConsoleLogger().debug("Using in-process starter");
                 InPluginVMSurefireStarter surefireStarter = 
createInprocessStarter(
                         provider,
                         classLoaderConfiguration,
@@ -1181,6 +1181,9 @@ public abstract class AbstractSurefireMojo extends 
AbstractMojo implements Suref
         } else {
             ForkConfiguration forkConfiguration = 
createForkConfiguration(platform, resolvedJavaModularityResult);
             if (getConsoleLogger().isDebugEnabled()) {
+                getConsoleLogger()
+                        .debug("Using fork starter with configuration 
implementation "
+                                + forkConfiguration.getClass().getName());
                 showMap(getEnvironmentVariables(), "environment variable");
                 showArray(getExcludedEnvironmentVariables(), "excluded 
environment variable");
             }

Reply via email to