← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8255: Reverting change in velocity manager

 

------------------------------------------------------------
revno: 8255
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-09-25 13:36:26 +0200
message:
  Reverting change in velocity manager
modified:
  dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/velocity/VelocityManager.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/velocity/VelocityManager.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/velocity/VelocityManager.java	2012-09-12 10:51:18 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/velocity/VelocityManager.java	2012-09-25 11:36:26 +0000
@@ -41,8 +41,6 @@
     private static final String RESOURCE_LOADER_NAME = "class";
     private static final String VM_SUFFIX = ".vm";
     
-    private static final boolean RUNTIME_LOGGING = false;
-    
     private VelocityEngine velocity;
 
     public VelocityManager()
@@ -50,13 +48,9 @@
         velocity = new VelocityEngine();
         velocity.setProperty( Velocity.RESOURCE_LOADER, RESOURCE_LOADER_NAME );
         velocity.setProperty( RESOURCE_LOADER_NAME + ".resource.loader.class", ClasspathResourceLoader.class.getName() );
-        
-        if ( RUNTIME_LOGGING )
-        {
-            velocity.setProperty( "runtime.log.logsystem.log4j.logger", "console" );
-            velocity.setProperty( "runtime.log", "" );
-        }
-        
+        velocity.setProperty( "runtime.log.logsystem.log4j.logger", "console" );
+        velocity.setProperty( "runtime.log", "" );
+                
         velocity.init();
     }