Commits

Anonymous committed 0072e90

Only log an info message when we actually load a velocity.properties file.

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@340573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 0214b62

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/views/velocity/VelocityManager.java

 
         if (Configuration.isSet("webwork.velocity.configfile")) {
             configfile = Configuration.getString("webwork.velocity.configfile");
-            log.info("Initializing velocity using '" + configfile + "'");
         } else {
             configfile = "velocity.properties";
-            log.info("Initializing velocity using '" + configfile + "'");
         }
 
         configfile = configfile.trim();
 
             // if we've got something, load 'er up
             if (in != null) {
+                log.info("Initializing velocity using '" + configfile + "'");
                 properties.load(in);
             }
         } catch (IOException e) {
-            log.warn("unable to load velocity configuration file, '" + configfile + "'", e);
+            log.warn("Unable to load velocity configuration file '" + configfile + "'", e);
         } finally {
             if (in != null) {
                 try {