velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r559113 - in /velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader: FileResourceLoader.java URLResourceLoader.java
Date Tue, 24 Jul 2007 17:14:15 GMT
Author: nbubna
Date: Tue Jul 24 10:14:14 2007
New Revision: 559113

URL: http://svn.apache.org/viewvc?view=rev&rev=559113
Log:
resource loaders don't really need to be logging paths at info level

Modified:
    velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
    velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/URLResourceLoader.java

Modified: velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java?view=diff&rev=559113&r1=559112&r2=559113
==============================================================================
--- velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
(original)
+++ velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
Tue Jul 24 10:14:14 2007
@@ -87,15 +87,16 @@
             log.debug("Do unicode file recognition:  " + unicode);
         }
 
-        // trim spaces from all paths
-        StringUtils.trimStrings(paths);
-        if (log.isInfoEnabled())
+        if (log.isDebugEnabled())
         {
+            // trim spaces from all paths
+            StringUtils.trimStrings(paths);
+
             // this section lets tell people what paths we will be using
             int sz = paths.size();
             for( int i=0; i < sz; i++)
             {
-                log.info("FileResourceLoader : adding path '" + (String) paths.get(i) + "'");
+                log.debug("FileResourceLoader : adding path '" + (String) paths.get(i) +
"'");
             }
             log.trace("FileResourceLoader : initialization complete.");
         }

Modified: velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/URLResourceLoader.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/URLResourceLoader.java?view=diff&rev=559113&r1=559112&r2=559113
==============================================================================
--- velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/URLResourceLoader.java
(original)
+++ velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/URLResourceLoader.java
Tue Jul 24 10:14:14 2007
@@ -50,11 +50,11 @@
 
         roots = configuration.getStringArray("root");
 
-        if (log.isInfoEnabled())
+        if (log.isDebugEnabled())
         {
             for (int i=0; i < roots.length; i++)
             {
-                log.info("URLResourceLoader : adding root '" + roots[i] + "'");
+                log.debug("URLResourceLoader : adding root '" + roots[i] + "'");
             }
         }
 



Mime
View raw message