jon 00/11/24 15:35:57
Modified: src/java/org/apache/velocity/runtime/directive
VelocimacroProxy.java
Log:
better logging of information and stack traces.
Revision Changes Path
1.4 +6 -5
jakarta-velocity/src/java/org/apache/velocity/runtime/directive/VelocimacroProxy.java
Index: VelocimacroProxy.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/directive/VelocimacroProxy.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- VelocimacroProxy.java 2000/11/22 02:18:40 1.3
+++ VelocimacroProxy.java 2000/11/24 23:35:57 1.4
@@ -58,7 +58,7 @@
* a proxy Directive-derived object to fit with the current directive system
*
* @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
- * @version $Id: VelocimacroProxy.java,v 1.3 2000/11/22 02:18:40 geirm Exp $
+ * @version $Id: VelocimacroProxy.java,v 1.4 2000/11/24 23:35:57 jon Exp $
*/
package org.apache.velocity.runtime.directive;
@@ -77,6 +77,7 @@
import org.apache.velocity.runtime.parser.node.Node;
import org.apache.velocity.runtime.parser.Token;
import org.apache.velocity.runtime.parser.node.SimpleNode;
+import org.apache.velocity.util.StringUtils;
public class VelocimacroProxy extends Directive
{
@@ -150,8 +151,8 @@
}
catch ( Exception e )
{
- System.out.println("VelocimacroProxy.render() : exception " + e);
- Runtime.error("VM error : " + strMacroName_ + " : " + e );
+ Runtime.error("VelocimacroProxy.render() : exception " + strMacroName_
+
+ " : " + StringUtils.stackTrace(e));
}
return true;
@@ -217,8 +218,8 @@
}
catch ( Exception e )
{
- System.out.println("VelocimacroProxy.render() : exception " + e);
- Runtime.error("VM error : " + strMacroName_ + " : " + e );
+ Runtime.error("VelocimacroProxy.init() : exception " + strMacroName_ +
+ " : " + StringUtils.stackTrace(e));
}
/*