svn commit: r932103 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/ServiceDispatcher.java

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

svn commit: r932103 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/ServiceDispatcher.java

doogie-3
Author: doogie
Date: Thu Apr  8 20:47:36 2010
New Revision: 932103

URL: http://svn.apache.org/viewvc?rev=932103&view=rev
Log:
Reduce excessive service error exception logging, removes 2 cases of the
logged exception.

Modified:
    ofbiz/trunk/framework/service/src/org/ofbiz/service/ServiceDispatcher.java

Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/ServiceDispatcher.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/ServiceDispatcher.java?rev=932103&r1=932102&r2=932103&view=diff
==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/ServiceDispatcher.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/ServiceDispatcher.java Thu Apr  8 20:47:36 2010
@@ -492,8 +492,7 @@ public class ServiceDispatcher {
                     try {
                         modelService.validate(result, ModelService.OUT_PARAM, locale);
                     } catch (ServiceValidationException e) {
-                        Debug.logError(e, "Outgoing result (in runSync : " + modelService.name + ") does not match expected requirements", module);
-                        throw e;
+                        throw new GenericServiceException("Outgoing result (in runSync : " + modelService.name + ") does not match expected requirements", e);
                     }
                 }
 
@@ -516,7 +515,6 @@ public class ServiceDispatcher {
                     UtilTimer.closeTimer(localName + " / " + modelService.name, "Sync service failed...", module);
                 }
                 String errMsg = "Service [" + modelService.name + "] threw an unexpected exception/error";
-                Debug.logError(t, errMsg, module);
                 if (serviceDebugMode) {
                     modelService.invoker.sendCallbacks(engine, context, null, t, GenericEngine.SYNC_MODE);
                 } else {