velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r697214 - in /velocity/engine/trunk/src/test/org/apache/velocity/test: MacroForwardDefineTestCase.java misc/TestLogChute.java
Date Fri, 19 Sep 2008 19:56:00 GMT
Author: nbubna
Date: Fri Sep 19 12:55:59 2008
New Revision: 697214

URL: http://svn.apache.org/viewvc?rev=697214&view=rev
Log:
don't default to 'debug' for test logger level

Modified:
    velocity/engine/trunk/src/test/org/apache/velocity/test/MacroForwardDefineTestCase.java
    velocity/engine/trunk/src/test/org/apache/velocity/test/misc/TestLogChute.java

Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/MacroForwardDefineTestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/MacroForwardDefineTestCase.java?rev=697214&r1=697213&r2=697214&view=diff
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/MacroForwardDefineTestCase.java
(original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/MacroForwardDefineTestCase.java
Fri Sep 19 12:55:59 2008
@@ -84,7 +84,7 @@
         logger = new TestLogChute();
         logger.off();
         Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM,logger);
-        Velocity.setProperty("runtime.log.logsystem.test.level", "debug");
+        Velocity.setProperty(TestLogChute.TEST_LOGGER_LEVEL, "debug");
         Velocity.init();
     }
 

Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/misc/TestLogChute.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/misc/TestLogChute.java?rev=697214&r1=697213&r2=697214&view=diff
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/misc/TestLogChute.java (original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/misc/TestLogChute.java Fri Sep
19 12:55:59 2008
@@ -60,8 +60,11 @@
     {
         super.init(rs);
 
-        String level = rs.getString(TEST_LOGGER_LEVEL, "debug");
-        setEnabledLevel(toLevel(level));
+        String level = rs.getString(TEST_LOGGER_LEVEL);
+        if (level != null)
+        {
+            setEnabledLevel(toLevel(level));
+        }
     }
 
     public void on()



Mime
View raw message