You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2012/03/06 03:26:14 UTC

svn commit: r1297325 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/ScriptEngine.java

Author: adrianc
Date: Tue Mar  6 02:26:14 2012
New Revision: 1297325

URL: http://svn.apache.org/viewvc?rev=1297325&view=rev
Log:
Small fixup for my last commit.

Modified:
    ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/ScriptEngine.java

Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/ScriptEngine.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/ScriptEngine.java?rev=1297325&r1=1297324&r2=1297325&view=diff
==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/ScriptEngine.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/ScriptEngine.java Tue Mar  6 02:26:14 2012
@@ -76,7 +76,6 @@ public final class ScriptEngine extends 
             if (resultObj == null) {
                 resultObj = scriptContext.getAttribute("result");
             }
-            Debug.logInfo("resultObj = " + resultObj, module);
             if (resultObj != null && resultObj instanceof Map<?, ?>) {
                 return cast(resultObj);
             }
@@ -84,7 +83,7 @@ public final class ScriptEngine extends 
             result.putAll(modelService.makeValid(scriptContext.getBindings(ScriptContext.ENGINE_SCOPE), "OUT"));
             return result;
         } catch (Exception e) {
-            Debug.logInfo(e, module);
+            Debug.logWarning(e, "Error invoking service " + modelService.name + ": ", module);
             throw new GenericServiceException(e);
         }
     }