You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by po...@apache.org on 2022/04/16 21:17:16 UTC

[creadur-rat] branch master updated: RAT-288: Remove logging output about deprecated debug option. Prefer verbose instead. Thanks to M.Osipov.

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

pottlinger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git


The following commit(s) were added to refs/heads/master by this push:
     new 67687321 RAT-288: Remove logging output about deprecated debug option. Prefer verbose instead. Thanks to M.Osipov.
67687321 is described below

commit 67687321d09678cafa84d586f82b094522d574fd
Author: P. Ottlinger <po...@apache.org>
AuthorDate: Sat Apr 16 23:17:07 2022 +0200

    RAT-288: Remove logging output about deprecated debug option. Prefer verbose instead. Thanks to M.Osipov.
---
 .../src/main/java/org/apache/rat/mp/AbstractRatMojo.java            | 6 +++---
 src/changes/changes.xml                                             | 3 +++
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java b/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
index 9d672daa..96b7c2c1 100644
--- a/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
+++ b/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
@@ -314,7 +314,7 @@ public abstract class AbstractRatMojo extends AbstractMojo {
         } else {
             getLog().info(
                     files.length
-                            + " resources included (use -debug for more details)");
+                            + " resources included");
             if (getLog().isDebugEnabled()) {
                 for (final String resource : files) {
                     getLog().debug(" - included " + resource);
@@ -406,7 +406,7 @@ public abstract class AbstractRatMojo extends AbstractMojo {
         if (excludes == null || excludes.length == 0) {
             getLog().info("No excludes explicitly specified.");
         } else {
-            getLog().info(excludes.length + " explicit excludes (use -debug for more details).");
+            getLog().info(excludes.length + " explicit excludes.");
         	for (final String exclude : excludes) {
                 getLog().debug("Exclude: " + exclude);
             }
@@ -454,7 +454,7 @@ public abstract class AbstractRatMojo extends AbstractMojo {
         } else {
             getLog().info(
                     results.size()
-                            + " implicit excludes (use -debug for more details).");
+                            + " implicit excludes.");
             for (final String exclude : results) {
                 getLog().debug("Implicit exclude: " + exclude);
             }
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index c4ef6632..507ef397 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -55,6 +55,9 @@ The <action> type attribute can be add,update,fix,remove.
 
   <body>
     <release version="0.14-SNAPSHOT" date="2020-xx-xx" description="Current SNAPSHOT - to be done">
+      <action issue="RAT-288" type="add" dev="pottlinger" due-to="Michael Osipov">
+        Adapt logging output to be more compliant with future Maven versions as debug is deprecated and verbose is the recommended way to go.
+      </action>
       <action type="fix" issue="RAT-273" dev="jochen">
         Some tests were based on the assumption, that the value of file.encoding
         can be changed on runtime. (Won't work nowadays, beginning with Java 16.)