geirm       00/11/26 19:57:05

  Modified:    src/java/org/apache/velocity/runtime RuntimeConstants.java
               src/java/org/apache/velocity/runtime/defaults
                        velocity.properties
  Log:
  Added the new property, runtime.log.reference.log_invalid, default = true.  This 
controls the output from ASTReference when it runs into an invalid reference.  It is 
on by default, but you can now turn that off for production use.
  
  Revision  Changes    Path
  1.4       +2 -0      
jakarta-velocity/src/java/org/apache/velocity/runtime/RuntimeConstants.java
  
  Index: RuntimeConstants.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/RuntimeConstants.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RuntimeConstants.java     2000/11/27 03:38:35     1.3
  +++ RuntimeConstants.java     2000/11/27 03:57:04     1.4
  @@ -81,4 +81,6 @@
   
       public static final String FILE_TEMPLATE_PATH = "File.template.path";
       public static final String FILE_TEMPLATE_CACHE = "File.template.cache";
  +
  +    public static final String RUNTIME_LOG_REFERENCE_LOG_INVALID  = 
"runtime.log.reference.log_invalid";
   }
  
  
  
  1.11      +10 -0     
jakarta-velocity/src/java/org/apache/velocity/runtime/defaults/velocity.properties
  
  Index: velocity.properties
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/defaults/velocity.properties,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- velocity.properties       2000/11/27 03:39:11     1.10
  +++ velocity.properties       2000/11/27 03:57:05     1.11
  @@ -106,3 +106,13 @@
   #----------------------------------------------------------------------------
   velocimacro.library.global=VM_global_library.vm
   
  +#----------------------------------------------------------------------------
  +# REFERENCE DEBUG OUTPUT
  +#----------------------------------------------------------------------------
  +# property to turn off the log output when a reference isn't valid.  Currently
  +# will leave this as true (on) to duplicate existing behavior, but this allows
  +# you to turn the chatter off in production.
  +#----------------------------------------------------------------------------
  +runtime.log.reference.log_invalid = true
  +
  +
  
  
  

Reply via email to