camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r688301 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java
Date Sat, 23 Aug 2008 11:36:18 GMT
Author: davsclaus
Date: Sat Aug 23 04:36:17 2008
New Revision: 688301

URL: http://svn.apache.org/viewvc?rev=688301&view=rev
Log:
CAMEL-839: Changed to WARN log for non internal camel convertions

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java?rev=688301&r1=688300&r2=688301&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java
Sat Aug 23 04:36:17 2008
@@ -104,10 +104,12 @@
             }
         }
 
-        if (LOG.isDebugEnabled()) {
-            LOG.debug("Could not find a type converter for converting "
-                + (value == null ? "null" : value.getClass().getCanonicalName())
-                + " -> " + type.getCanonicalName() + " with value: " + value);
+        boolean camelType = type.getCanonicalName().startsWith("org.apache.camel");
+        if (!camelType && value != null) {
+            // only log WARN level for non internal Camel convertions 
+            LOG.warn("Could not find a type converter for converting "
+                + value.getClass().getCanonicalName() + " -> "
+                + type.getCanonicalName() + " with value: " + value);
         }
         return null;
     }



Mime
View raw message