You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tiles.apache.org by ap...@apache.org on 2007/05/16 14:01:24 UTC
svn commit: r538552 -
/tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/context/ChainedTilesContextFactory.java
Author: apetrelli
Date: Wed May 16 05:01:23 2007
New Revision: 538552
URL: http://svn.apache.org/viewvc?view=rev&rev=538552
Log:
TILES-180
ChainedTilesContextFactory now logs missing elementary TilesContextFactory without a stacktrace at WARN level.
It still logs the stack trace at DEBUG level.
Modified:
tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/context/ChainedTilesContextFactory.java
Modified: tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/context/ChainedTilesContextFactory.java
URL: http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/context/ChainedTilesContextFactory.java?view=diff&rev=538552&r1=538551&r2=538552
==============================================================================
--- tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/context/ChainedTilesContextFactory.java (original)
+++ tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/context/ChainedTilesContextFactory.java Wed May 16 05:01:23 2007
@@ -92,7 +92,11 @@
// We log it, because it could be a default configuration class that
// is simply not present.
LOG.warn("Cannot find TilesContextFactory class "
- + classNames[i], e);
+ + classNames[i]);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Cannot find TilesContextFactory class "
+ + classNames[i], e);
+ }
} catch (InstantiationException e) {
throw new IllegalArgumentException(
"Cannot instantiate TilesFactoryClass " + classNames[i],