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

kwin pushed a commit to branch feature/log-starter-with-fork-configuration
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 3c0b5acf1e5c952d19e183c2f0536598d0d937ab
Author: Konrad Windszus <[email protected]>
AuthorDate: Wed Jun 21 20:46:48 2023 +0200

    [SUREFIRE-2182] Log starter implementation on DEBUG level
    
    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..e2e8d703b 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 "
+                                + forkConfiguration.getClass().getName());
                 showMap(getEnvironmentVariables(), "environment variable");
                 showArray(getExcludedEnvironmentVariables(), "excluded 
environment variable");
             }

Reply via email to