freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject incubator-freemarker git commit: BeanModel shouldn't log "no such key" events, not even on debug level.
Date Tue, 08 Aug 2017 18:05:57 GMT
Repository: incubator-freemarker
Updated Branches:
  refs/heads/3 a5ac9983f -> 3f2743387


BeanModel shouldn't log "no such key" events, not even on debug level.


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/3f274338
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/3f274338
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/3f274338

Branch: refs/heads/3
Commit: 3f2743387d6c29a13a0766efd15056133db8ca50
Parents: a5ac998
Author: ddekany <ddekany@apache.org>
Authored: Tue Aug 8 20:05:50 2017 +0200
Committer: ddekany <ddekany@apache.org>
Committed: Tue Aug 8 20:05:50 2017 +0200

----------------------------------------------------------------------
 .../org/apache/freemarker/core/model/impl/BeanModel.java | 11 -----------
 1 file changed, 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/3f274338/freemarker-core/src/main/java/org/apache/freemarker/core/model/impl/BeanModel.java
----------------------------------------------------------------------
diff --git a/freemarker-core/src/main/java/org/apache/freemarker/core/model/impl/BeanModel.java
b/freemarker-core/src/main/java/org/apache/freemarker/core/model/impl/BeanModel.java
index 4320251..65c3953 100644
--- a/freemarker-core/src/main/java/org/apache/freemarker/core/model/impl/BeanModel.java
+++ b/freemarker-core/src/main/java/org/apache/freemarker/core/model/impl/BeanModel.java
@@ -45,7 +45,6 @@ import org.apache.freemarker.core.model.TemplateModelIterator;
 import org.apache.freemarker.core.model.TemplateModelWithAPISupport;
 import org.apache.freemarker.core.model.TemplateScalarModel;
 import org.apache.freemarker.core.model.WrapperTemplateModel;
-import org.apache.freemarker.core.util._StringUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -145,8 +144,6 @@ public class BeanModel
             if (retval == UNKNOWN) {
                 if (wrapper.isStrict()) {
                     throw new InvalidPropertyException("No such bean property: " + key);
-                } else {
-                    logNoSuchKey(key, classInfo);
                 }
                 retval = wrapper.wrap(null);
             }
@@ -162,14 +159,6 @@ public class BeanModel
         }
     }
 
-    private void logNoSuchKey(String key, Map<?, ?> keyMap) {
-        if (LOG.isDebugEnabled()) {
-            LOG.debug("Key " + _StringUtils.jQuoteNoXSS(key) + " was not found on instance
of " +
-                object.getClass().getName() + ". Introspection information for " +
-                "the class is: " + keyMap);
-        }
-    }
-    
     /**
      * Whether the model has a plain get(String) or get(Object) method
      */


Mime
View raw message