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 2014/04/23 15:36:37 UTC

[1/2] git commit: CAMEL-7373: Reduce logging noise on startup.

Repository: camel
Updated Branches:
  refs/heads/camel-2.13.x 06605435d -> b4479e310
  refs/heads/master cbd93fc6a -> b9701bfe8


CAMEL-7373: Reduce logging noise on startup.


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

Branch: refs/heads/camel-2.13.x
Commit: b4479e310aad3b5944a3c3e90162354931845738
Parents: 0660543
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Apr 23 15:35:54 2014 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Apr 23 15:36:30 2014 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/model/LogDefinition.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b4479e31/camel-core/src/main/java/org/apache/camel/model/LogDefinition.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/model/LogDefinition.java b/camel-core/src/main/java/org/apache/camel/model/LogDefinition.java
index 7aa000e..27f6c20 100644
--- a/camel-core/src/main/java/org/apache/camel/model/LogDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/LogDefinition.java
@@ -100,10 +100,10 @@ public class LogDefinition extends NoOutputDefinition<LogDefinition> {
             Map<String, Logger> availableLoggers = routeContext.lookupByType(Logger.class);
             if (availableLoggers.size() == 1) {
                 logger = availableLoggers.values().iterator().next();
-                LOG.info("Using custom Logger: {}", logger);
+                LOG.debug("Using custom Logger: {}", logger);
             } else if (availableLoggers.size() > 1) {
                 // we should log about this somewhere...
-                LOG.info("More than one {} instance found in the registry. Falling back to create logger by name.", Logger.class.getName());
+                LOG.debug("More than one {} instance found in the registry. Falling back to create logger by name.", Logger.class.getName());
             }
         }
 
@@ -111,7 +111,7 @@ public class LogDefinition extends NoOutputDefinition<LogDefinition> {
             String name = getLogName();
             if (name == null) {
                 name = routeContext.getRoute().getId();
-                LOG.info("The LogName is null. Falling back to create logger by using the route id {}.", name);
+                LOG.debug("The LogName is null. Falling back to create logger by using the route id {}.", name);
             }
             logger = LoggerFactory.getLogger(name);
         }


[2/2] git commit: CAMEL-7373: Reduce logging noise on startup.

Posted by da...@apache.org.
CAMEL-7373: Reduce logging noise on startup.


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

Branch: refs/heads/master
Commit: b9701bfe86a78de9b48d1db3da02e781796cf50b
Parents: cbd93fc
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Apr 23 15:35:54 2014 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Apr 23 15:36:38 2014 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/model/LogDefinition.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b9701bfe/camel-core/src/main/java/org/apache/camel/model/LogDefinition.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/model/LogDefinition.java b/camel-core/src/main/java/org/apache/camel/model/LogDefinition.java
index 7aa000e..27f6c20 100644
--- a/camel-core/src/main/java/org/apache/camel/model/LogDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/LogDefinition.java
@@ -100,10 +100,10 @@ public class LogDefinition extends NoOutputDefinition<LogDefinition> {
             Map<String, Logger> availableLoggers = routeContext.lookupByType(Logger.class);
             if (availableLoggers.size() == 1) {
                 logger = availableLoggers.values().iterator().next();
-                LOG.info("Using custom Logger: {}", logger);
+                LOG.debug("Using custom Logger: {}", logger);
             } else if (availableLoggers.size() > 1) {
                 // we should log about this somewhere...
-                LOG.info("More than one {} instance found in the registry. Falling back to create logger by name.", Logger.class.getName());
+                LOG.debug("More than one {} instance found in the registry. Falling back to create logger by name.", Logger.class.getName());
             }
         }
 
@@ -111,7 +111,7 @@ public class LogDefinition extends NoOutputDefinition<LogDefinition> {
             String name = getLogName();
             if (name == null) {
                 name = routeContext.getRoute().getId();
-                LOG.info("The LogName is null. Falling back to create logger by using the route id {}.", name);
+                LOG.debug("The LogName is null. Falling back to create logger by using the route id {}.", name);
             }
             logger = LoggerFactory.getLogger(name);
         }