[
https://issues.apache.org/jira/browse/OFBIZ-9981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266425#comment-16266425 ]
Suraj Khurana edited comment on OFBIZ-9981 at 11/27/17 6:28 AM:
----------------------------------------------------------------
Here is the patch in which Debug.logError is added on ServiceUtil.returnProblem so that every return error will be also logged on the console.
was (Author: suraj.khurana):
Here is the patch in which Deb.logError is added on ServiceUtil.returnProblem so that every return error will be also logged on the console.
> Handle service response effectively
> -----------------------------------
>
> Key: OFBIZ-9981
> URL:
https://issues.apache.org/jira/browse/OFBIZ-9981> Project: OFBiz
> Issue Type: Improvement
> Reporter: Suraj Khurana
> Assignee: Suraj Khurana
> Attachments: OFBIZ-9981.patch
>
>
> As per discussion on Dev ML:
> ==========================
> Every service calling from java/groovy must handle errors by service util methods such as isError, reutrnError etc. and similarly in case of XML <call-service, there should be <check-error/> to make sure service was executed successfully.
> Apart from this, one suggestion is to include *Debug.logError* in *_ServiceUtil.returnProblem_* so that in case of any error occurred and handled, it will always be logged on the console.
> ==========================
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)