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;
}