jon 00/11/07 19:02:40
Modified: src/java/org/apache/velocity/runtime/loader
TemplateFactory.java
Log:
more logging of information
Revision Changes Path
1.4 +6 -4
jakarta-velocity/src/java/org/apache/velocity/runtime/loader/TemplateFactory.java
Index: TemplateFactory.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/loader/TemplateFactory.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TemplateFactory.java 2000/10/31 23:44:56 1.3
+++ TemplateFactory.java 2000/11/08 03:02:40 1.4
@@ -55,12 +55,13 @@
*/
import org.apache.velocity.runtime.Runtime;
+import org.apache.velocity.util.StringUtils;
/**
* Factory to grab a template loader.
*
* @author Dave Bryson
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*/
public class TemplateFactory
{
@@ -76,7 +77,7 @@
try
{
loader = ((TemplateLoader)Class.forName(loaderClassName).newInstance());
- Runtime.info("Template loader instantiated.");
+ Runtime.info("Template Loader Instantiated: " +
loader.getClass().getName());
return loader;
}
@@ -85,9 +86,10 @@
Runtime.error("Problem instantiating the template loader.\n" +
"Look at your properties file and make sure the\n" +
"name of the template loader is correct. Here is the\n" +
- "error: " + e);
+ "error: " + StringUtils.stackTrace(e));
- throw new Exception("Problem initializing the template loader.");
+ throw new Exception("Problem initializing template loader: " +
loaderClassName +
+ "\nError is: " + StringUtils.stackTrace(e));
}
}
}