You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/06/09 08:57:56 UTC

camel git commit: Tone down logging noise for Camel maven plugins

Repository: camel
Updated Branches:
  refs/heads/master ae426d73e -> 4a044d882


Tone down logging noise for Camel maven plugins


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4a044d88
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4a044d88
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4a044d88

Branch: refs/heads/master
Commit: 4a044d8821b4191fc127aa2d5011374c59cd41ea
Parents: ae426d7
Author: Claus Ibsen <da...@apache.org>
Authored: Thu Jun 9 10:57:47 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Jun 9 10:57:47 2016 +0200

----------------------------------------------------------------------
 .../apache/camel/maven/packaging/ReadmeComponentMojo.java    | 6 +++---
 .../maven/packaging/SpringBootAutoConfigurationMojo.java     | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4a044d88/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java
index 2b4598d..f749e96 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java
@@ -89,7 +89,7 @@ public class ReadmeComponentMojo extends AbstractMojo {
 
         // only if there is components we should update the documentation files
         if (!componentNames.isEmpty()) {
-            getLog().info("Found " + componentNames.size() + " components");
+            getLog().debug("Found " + componentNames.size() + " components");
             for (String componentName : componentNames) {
                 String json = loadComponentJson(jsonFiles, componentName);
                 if (json != null) {
@@ -110,9 +110,9 @@ public class ReadmeComponentMojo extends AbstractMojo {
                     if (updated) {
                         getLog().info("Updated doc file: " + file);
                     } else if (exists) {
-                        getLog().info("No changes to doc file: " + file);
+                        getLog().debug("No changes to doc file: " + file);
                     } else {
-                        getLog().info("No component doc file: " + file);
+                        getLog().warn("No component doc file: " + file);
                     }
                 }
             }

http://git-wip-us.apache.org/repos/asf/camel/blob/4a044d88/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
index f87660f..277905a 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
@@ -109,7 +109,7 @@ public class SpringBootAutoConfigurationMojo extends AbstractMojo {
 
         // create auto configuration for the components
         if (!componentNames.isEmpty()) {
-            getLog().info("Found " + componentNames.size() + " components");
+            getLog().debug("Found " + componentNames.size() + " components");
             for (String componentName : componentNames) {
                 String json = loadComponentJson(jsonFiles, componentName);
                 if (json != null) {
@@ -180,7 +180,7 @@ public class SpringBootAutoConfigurationMojo extends AbstractMojo {
                     FileUtils.write(target, code, false);
                     getLog().info("Updated existing file: " + target);
                 } else {
-                    getLog().info("No changes to existing file: " + target);
+                    getLog().debug("No changes to existing file: " + target);
                 }
             } else {
                 FileUtils.write(target, code);
@@ -250,7 +250,7 @@ public class SpringBootAutoConfigurationMojo extends AbstractMojo {
                     FileUtils.write(target, code, false);
                     getLog().info("Updated existing file: " + target);
                 } else {
-                    getLog().info("No changes to existing file: " + target);
+                    getLog().debug("No changes to existing file: " + target);
                 }
             } else {
                 FileUtils.write(target, code);
@@ -287,7 +287,7 @@ public class SpringBootAutoConfigurationMojo extends AbstractMojo {
                 }
 
                 if (found) {
-                    getLog().info("No changes to existing file: " + target);
+                    getLog().debug("No changes to existing file: " + target);
                 } else {
                     // find last non empty line, so we can add our new line after that
                     int lastLine = 0;