diff options
author | Claude Brisson <cbrisson@apache.org> | 2016-06-22 13:29:11 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2016-06-22 13:29:11 +0000 |
commit | f09bc7956e8e0f03067cfc39760c6a2c0f1387a9 (patch) | |
tree | 249de92b0aa01b87f5e4cc36dddb1e1d595f70bb /velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java | |
parent | f58da686672b7e103d8bcee72082d537b77a23d6 (diff) | |
download | apache-velocity-engine-f09bc7956e8e0f03067cfc39760c6a2c0f1387a9.tar.gz |
fix some parametrized logger messages for slf4j '{}' placeholders, and add parametrization when possible
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1749696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java index 7cc636af..26ff9c24 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java @@ -107,7 +107,7 @@ public class ResourceManagerImpl this.rsvc = rsvc; log = rsvc.getLog(); - log.trace("ResourceManager initializing: %s", this.getClass()); + log.trace("ResourceManager initializing: {}", this.getClass()); assembleResourceLoaderInitializers(); @@ -240,7 +240,7 @@ public class ResourceManagerImpl if (loaderConfiguration == null) { log.debug("ResourceManager : No configuration information found "+ - "for resource loader named '%s' (id is %s). Skipping it...", + "for resource loader named '{}' (id is {}). Skipping it...", loaderName, loaderID); continue; } @@ -448,7 +448,7 @@ public class ResourceManagerImpl if (logWhenFound && log.isDebugEnabled()) { - log.debug("ResourceManager: found %s with loader ", + log.debug("ResourceManager: found {} with loader {}", resourceName, resourceLoader.getClassName()); } @@ -536,7 +536,7 @@ public class ResourceManagerImpl if (!org.apache.commons.lang3.StringUtils.equals(resource.getEncoding(), encoding)) { - log.warn("Declared encoding for template '%s' is different on reload. Old = '%s' New = '%s'", + log.warn("Declared encoding for template '{}' is different on reload. Old = '{}' New = '{}'", resource.getName(), resource.getEncoding(), encoding); resource.setEncoding(encoding); } |