camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r959967 - /camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
Date Fri, 02 Jul 2010 12:39:49 GMT
Author: davsclaus
Date: Fri Jul  2 12:39:49 2010
New Revision: 959967

URL: http://svn.apache.org/viewvc?rev=959967&view=rev
Log:
Using trace log when factory finder could not be found as we try other classloaders. it will
just confuse end users if the see the stacktrace in their logs when using debug level

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java?rev=959967&r1=959966&r2=959967&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
Fri Jul  2 12:39:49 2010
@@ -133,9 +133,13 @@ public abstract class GenericFileEndpoin
             FactoryFinder finder = getCamelContext().getFactoryFinder("META-INF/services/org/apache/camel/component/");
             factory = finder.findClass(getScheme(), "strategy.factory.");
         } catch (ClassNotFoundException e) {
-            log.debug("'strategy.factory.class' not found", e);
+            if (log.isTraceEnabled()) {
+                log.trace("'strategy.factory.class' not found", e);
+            }
         } catch (IOException e) {
-            log.debug("No strategy factory defined in 'META-INF/services/org/apache/camel/component/'",
e);
+            if (log.isTraceEnabled()) {
+                log.trace("No strategy factory defined in 'META-INF/services/org/apache/camel/component/'",
e);
+            }
         }
 
         if (factory == null) {



Mime
View raw message