Hello Michael,
Le 13/12/2017 à 14:03, [email protected] a écrit :
---
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
Wed Dec 13 13:03:03 2017
@@ -78,7 +78,9 @@ public class JuelConnector {
Object base = null;
try {
base = prefix.eval(bindings, context);
- } catch (Exception e) {}
+ } catch (Exception e) {
+ Debug.log(e, module);
+ }
With this commit, my logs are now massively populate by
2017-12-17 17:32:52,542 |main |JuelConnector |F| null
javax.el.PropertyNotFoundException: Cannot resolve identifier
'updateServiceCtx'
at
de.odysseus.el.tree.impl.ast.AstIdentifier.eval(AstIdentifier.java:93)
~[juel-impl-2.2.7.jar:2.2.7]
at
org.apache.ofbiz.base.util.string.JuelConnector$ExtendedAstDot.setValue(JuelConnector.java:116)
[ofbiz.jar:?]
...
I'm alone on this case ?
I propose, if you want display the exception, to replace all
Debug.log(e, module); by
if (Debug.verboseOn()) {Debug.logVerbose("failed to .... by "
e.toString(), module); }
Like this we can display them without stacktrace when the verbose mode
will be enable.
Cheers,
Nicolas