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/03/23 19:59:24 UTC

[04/23] camel git commit: Fixing. This component info logging should be TRACE or DEBUG. Now, it is set to DEBUG level.

Fixing. This component info logging should be TRACE or DEBUG. Now, it is
set to DEBUG level. 

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

Branch: refs/heads/master
Commit: 0bd53989b79b90ac4cbb54480cf00a91a0a9d284
Parents: a7f8c12
Author: oalles <oa...@neivi.es>
Authored: Mon Mar 21 12:48:27 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Mar 23 18:46:10 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/cm/CMComponent.java  | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/0bd53989/components/camel-cm/src/main/java/org/apache/camel/component/cm/CMComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-cm/src/main/java/org/apache/camel/component/cm/CMComponent.java b/components/camel-cm/src/main/java/org/apache/camel/component/cm/CMComponent.java
index 8dd3b58..3239af2 100644
--- a/components/camel-cm/src/main/java/org/apache/camel/component/cm/CMComponent.java
+++ b/components/camel-cm/src/main/java/org/apache/camel/component/cm/CMComponent.java
@@ -59,7 +59,7 @@ public class CMComponent extends UriEndpointComponent {
     protected Endpoint createEndpoint(final String uri, final String remaining,
             final Map<String, Object> parameters) throws Exception {
 
-        LOG.info("Creating CM Endpoint ... ");
+        LOG.debug("Creating CM Endpoint ... ");
 
         final String url = CMConstants.DEFAULT_SCHEME + remaining;
         if (!UrlValidator.getInstance().isValid(url)) {
@@ -68,7 +68,7 @@ public class CMComponent extends UriEndpointComponent {
                     url));
         }
 
-        LOG.info("Uri=[{}], path=[{}], parameters=[{}]",
+        LOG.debug("Uri=[{}], path=[{}], parameters=[{}]",
                 new Object[] { URISupport.sanitizeUri(uri),
                         URISupport.sanitizePath(remaining), parameters });
 
@@ -77,7 +77,7 @@ public class CMComponent extends UriEndpointComponent {
         setProperties(config, parameters);
 
         // Validate configuration
-        LOG.info("Validating uri based configuration");
+        LOG.debug("Validating uri based configuration");
         final Set<ConstraintViolation<CMConfiguration>> constraintViolations = validator
                 .validate(config);
         if (constraintViolations.size() > 0) {
@@ -86,15 +86,14 @@ public class CMComponent extends UriEndpointComponent {
                 msg.append(String.format("- Invalid value for %s: %s",
                         cv.getPropertyPath().toString(), cv.getMessage()));
             }
-            LOG.error(msg.toString());
             throw new InvalidUriEndpointException(msg.toString());
         }
-        LOG.info("CMConfiguration - OK!");
+        LOG.debug("CMConfiguration - OK!");
 
         // Component is an Endpoint factory. So far, just one Endpoint type.
         // Endpoint construction and configuration.
 
-        LOG.info("Creating CMEndpoint");
+        LOG.debug("Creating CMEndpoint");
         final CMEndpoint endpoint = new CMEndpoint(uri, this);
         endpoint.setConfiguration(config);
         endpoint.setHost(remaining);