This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/velocity-engine.git

commit 8945a78742f6bc0e43c2e2abd1b0b2bdbc10cc92
Author: Michael Osipov <[email protected]>
AuthorDate: Tue Jul 30 20:00:40 2024 +0200

    Fix log messages
---
 .../src/main/java/org/apache/velocity/runtime/ParserPoolImpl.java     | 2 +-
 .../src/main/java/org/apache/velocity/runtime/RuntimeInstance.java    | 4 ++--
 .../apache/velocity/runtime/parser/node/BooleanPropertyExecutor.java  | 2 +-
 .../org/apache/velocity/runtime/parser/node/PropertyExecutor.java     | 2 +-
 .../org/apache/velocity/runtime/parser/node/PublicFieldExecutor.java  | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/ParserPoolImpl.java
 
b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/ParserPoolImpl.java
index 3934f2d0..13d8f58f 100644
--- 
a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/ParserPoolImpl.java
+++ 
b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/ParserPoolImpl.java
@@ -54,7 +54,7 @@ public class ParserPoolImpl implements ParserPool {
             pool.put(rsvc.createNewParser());
         }
 
-        log.debug("Created '{}' parsers.", max);
+        log.debug("Created {} parsers.", max);
     }
 
     /**
diff --git 
a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
 
b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
index 3d77055d..0379e651 100644
--- 
a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
+++ 
b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
@@ -273,7 +273,7 @@ public class RuntimeInstance implements RuntimeConstants, 
RuntimeServices
                 initializing = true;
 
                 log.trace("*****************************");
-                log.debug("Starting Apache Velocity v" + 
VelocityEngineVersion.VERSION);
+                log.debug("Starting Apache Velocity " + 
VelocityEngineVersion.VERSION);
                 log.trace("RuntimeInstance initializing.");
 
                 initializeProperties();
@@ -1502,7 +1502,7 @@ public class RuntimeInstance implements RuntimeConstants, 
RuntimeServices
             }
             catch(Exception e)
             {
-                String msg = "RuntimeInstance.render(): init exception for tag 
= "+logTag;
+                String msg = "RuntimeInstance.render(): init exception for tag 
'"+logTag + "'";
                 log.error(msg, e);
                 throw new VelocityException(msg, e, 
getLogContext().getStackTrace());
             }
diff --git 
a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/BooleanPropertyExecutor.java
 
b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/BooleanPropertyExecutor.java
index 1c834f8c..3bb9fd80 100644
--- 
a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/BooleanPropertyExecutor.java
+++ 
b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/BooleanPropertyExecutor.java
@@ -115,7 +115,7 @@ public class BooleanPropertyExecutor extends 
PropertyExecutor
         }
         catch(Exception e)
         {
-            String msg = "Exception while looking for boolean property getter 
for '" + property;
+            String msg = "Exception while looking for boolean property getter 
for '" + property + "'";
             log.error(msg, e);
             throw new VelocityException(msg, e);
         }
diff --git 
a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java
 
b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java
index 7763724c..644cc8cf 100644
--- 
a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java
+++ 
b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java
@@ -129,7 +129,7 @@ public class PropertyExecutor extends AbstractExecutor
         }
         catch(Exception e)
         {
-            String msg = "Exception while looking for property getter for '" + 
property;
+            String msg = "Exception while looking for property getter for '" + 
property + "'";
             log.error(msg, e);
             throw new VelocityException(msg, e);
         }
diff --git 
a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/PublicFieldExecutor.java
 
b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/PublicFieldExecutor.java
index 643f9817..599bc804 100644
--- 
a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/PublicFieldExecutor.java
+++ 
b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/PublicFieldExecutor.java
@@ -110,7 +110,7 @@ public class PublicFieldExecutor extends AbstractExecutor
         }
         catch(Exception e)
         {
-            String msg = "Exception while looking for public field '" + 
property;
+            String msg = "Exception while looking for public field '" + 
property + "'";
             log.error(msg, e);
             throw new VelocityException(msg, e);
         }

Reply via email to