svn commit: r1818498 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/JuelConnector.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1818498 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/JuelConnector.java

mbrohl
Author: mbrohl
Date: Sun Dec 17 18:08:53 2017
New Revision: 1818498

URL: http://svn.apache.org/viewvc?rev=1818498&view=rev
Log:
Fixed: Massive stacktraces in JuelConnector.

Added a constraint to verbose logging to avoid logging too much.

Modified:
    ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/JuelConnector.java

Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/JuelConnector.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/JuelConnector.java?rev=1818498&r1=1818497&r2=1818498&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/JuelConnector.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/JuelConnector.java Sun Dec 17 18:08:53 2017
@@ -79,7 +79,9 @@ public class JuelConnector {
             try {
                 base = prefix.eval(bindings, context);
             } catch (Exception e) {
-                Debug.log(e, module);
+                if (Debug.verboseOn()) {
+                    Debug.logVerbose(e, module);
+                }
             }
             Object property = getProperty(bindings, context);
             if (property == null && strict) {