velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r747238 - in /velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive: Break.java Foreach.java
Date Tue, 24 Feb 2009 00:36:43 GMT
Author: nbubna
Date: Tue Feb 24 00:36:43 2009
New Revision: 747238

URL: http://svn.apache.org/viewvc?rev=747238&view=rev
Log:
be more consistent with log levels on the notices added in r747236

Modified:
    velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Break.java
    velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java

Modified: velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Break.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Break.java?rev=747238&r1=747237&r2=747238&view=diff
==============================================================================
--- velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Break.java (original)
+++ velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Break.java Tue Feb
24 00:36:43 2009
@@ -103,9 +103,9 @@
         if (!warned)
         {
             warned = true;
-            if (rs.getLog().isInfoEnabled())
+            if (rs.getLog().isWarnEnabled())
             {
-                rs.getLog().info("#break has been deprecated and will be removed in Velocity
2.0; please use #stop($foreach) instead.");
+                rs.getLog().warn("#break has been deprecated and will be removed in Velocity
2.0; please use #stop($foreach) instead.");
             }
         }
     }

Modified: velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java?rev=747238&r1=747237&r2=747238&view=diff
==============================================================================
--- velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java (original)
+++ velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java Tue
Feb 24 00:36:43 2009
@@ -210,7 +210,7 @@
         hasNextName = rsvc.getString(RuntimeConstants.HAS_NEXT_NAME);
         counterInitialValue = rsvc.getInt(RuntimeConstants.COUNTER_INITIAL_VALUE);
         // only warn once per instance...
-        if (!warned && rsvc.getLog().isInfoEnabled())
+        if (!warned && rsvc.getLog().isWarnEnabled())
         {
             warned = true;
             // ...and only if they customize these settings



Mime
View raw message