You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2010/09/01 23:17:59 UTC
svn commit: r991708 -
/velocity/engine/trunk/src/java/org/apache/velocity/runtime/log/LogManager.java
Author: nbubna
Date: Wed Sep 1 21:17:56 2010
New Revision: 991708
URL: http://svn.apache.org/viewvc?rev=991708&view=rev
Log:
sync w/2.x branch to handle UnsupportedOpExs in LogManager
Modified:
velocity/engine/trunk/src/java/org/apache/velocity/runtime/log/LogManager.java
Modified: velocity/engine/trunk/src/java/org/apache/velocity/runtime/log/LogManager.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/log/LogManager.java?rev=991708&r1=991707&r2=991708&view=diff
==============================================================================
--- velocity/engine/trunk/src/java/org/apache/velocity/runtime/log/LogManager.java (original)
+++ velocity/engine/trunk/src/java/org/apache/velocity/runtime/log/LogManager.java Wed Sep 1 21:17:56 2010
@@ -197,6 +197,20 @@ public class LogManager
ncdfe);
}
}
+ catch(UnsupportedOperationException uoe)
+ {
+ // note these errors for anyone debugging the app
+ if (isProbablyProvidedLogChute(claz))
+ {
+ log.debug("Target log system for " + claz +
+ " is not supported (" + uoe.toString() +
+ "). Falling back to next log system...");
+ }
+ else
+ {
+ log.debug("Couldn't find necessary resources for "+claz, uoe);
+ }
+ }
catch(Exception e)
{
String msg = "Failed to initialize an instance of " + claz +