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 2019/05/23 19:31:03 UTC

[camel] 17/18: Reduce logging noise for standard discovered factories

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

davsclaus pushed a commit to branch 13557
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6320364f2bded9d5ac3503c0dc225804f3198ce9
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu May 23 21:11:01 2019 +0200

    Reduce logging noise for standard discovered factories
---
 .../org/apache/camel/impl/engine/BeanProcessorFactoryResolver.java    | 2 +-
 .../java/org/apache/camel/impl/engine/BeanProxyFactoryResolver.java   | 2 +-
 .../org/apache/camel/impl/engine/RestRegistryFactoryResolver.java     | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/engine/BeanProcessorFactoryResolver.java b/core/camel-base/src/main/java/org/apache/camel/impl/engine/BeanProcessorFactoryResolver.java
index 01934ff..2dcca85 100644
--- a/core/camel-base/src/main/java/org/apache/camel/impl/engine/BeanProcessorFactoryResolver.java
+++ b/core/camel-base/src/main/java/org/apache/camel/impl/engine/BeanProcessorFactoryResolver.java
@@ -51,7 +51,7 @@ public class BeanProcessorFactoryResolver {
             }
             if (BeanProcessorFactory.class.isAssignableFrom(type)) {
                 BeanProcessorFactory answer = (BeanProcessorFactory) context.getInjector().newInstance(type);
-                LOG.info("Detected and using custom BeanProcessorFactory: {}", answer);
+                LOG.debug("Detected and using BeanProcessorFactory: {}", answer);
                 return answer;
             } else {
                 throw new IllegalArgumentException("Type is not a BeanProcessorFactory implementation. Found: " + type.getName());
diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/engine/BeanProxyFactoryResolver.java b/core/camel-base/src/main/java/org/apache/camel/impl/engine/BeanProxyFactoryResolver.java
index b53e1a8..cbe233c 100644
--- a/core/camel-base/src/main/java/org/apache/camel/impl/engine/BeanProxyFactoryResolver.java
+++ b/core/camel-base/src/main/java/org/apache/camel/impl/engine/BeanProxyFactoryResolver.java
@@ -51,7 +51,7 @@ public class BeanProxyFactoryResolver {
             }
             if (BeanProxyFactory.class.isAssignableFrom(type)) {
                 BeanProxyFactory answer = (BeanProxyFactory) context.getInjector().newInstance(type);
-                LOG.info("Detected and using custom BeanProxyFactory: {}", answer);
+                LOG.debug("Detected and using BeanProxyFactory: {}", answer);
                 return answer;
             } else {
                 throw new IllegalArgumentException("Type is not a BeanProxyFactory implementation. Found: " + type.getName());
diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/engine/RestRegistryFactoryResolver.java b/core/camel-base/src/main/java/org/apache/camel/impl/engine/RestRegistryFactoryResolver.java
index ad74fcf..130ef9f 100644
--- a/core/camel-base/src/main/java/org/apache/camel/impl/engine/RestRegistryFactoryResolver.java
+++ b/core/camel-base/src/main/java/org/apache/camel/impl/engine/RestRegistryFactoryResolver.java
@@ -53,14 +53,14 @@ public class RestRegistryFactoryResolver {
             }
             if (RestRegistryFactory.class.isAssignableFrom(type)) {
                 RestRegistryFactory answer = (RestRegistryFactory) context.getInjector().newInstance(type);
-                LOG.info("Detected and using RestRegistryFactory: {}", answer);
+                LOG.debug("Detected and using RestRegistryFactory: {}", answer);
                 return answer;
             } else {
                 throw new IllegalArgumentException("Type is not a RestRegistryFactory implementation. Found: " + type.getName());
             }
         }
 
-        LOG.debug("No RestRegistryFactory implementation found.  You need to add camel-rest to the classpath.");
+        LOG.debug("Cannot find RestRegistryFactory. Make sure camel-rest is on the classpath.");
         return null;
     }