[
https://issues.apache.org/jira/browse/OFBIZ-11762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17123573#comment-17123573 ]
Priya Sharma commented on OFBIZ-11762:
--------------------------------------
Thanks for the confirmation Pawan!
As per the discussion the above case will now be converted from:
{code:java}
String errMsg = "Failure in operation, rolling back transaction"
Debug.logError(e, errMsg, module){code}
to
{code:java}
String errMsg = "Failure in operation, rolling back transaction"
logError(e, errMsg){code}
with the addition of Groovy Utility Method
{code:java}
def logError(Throwable t, String message) {
Debug.logError(t, message, module)
}
{code}
> Use GroovyBaseScript's logging utility methods instead of using Debug in each Groovy files
> ------------------------------------------------------------------------------------------
>
> Key: OFBIZ-11762
> URL:
https://issues.apache.org/jira/browse/OFBIZ-11762> Project: OFBiz
> Issue Type: Improvement
> Components: ALL COMPONENTS
> Affects Versions: Trunk
> Reporter: Pawan Verma
> Assignee: Priya Sharma
> Priority: Minor
>
> Use GroovyBaseScript's logging utility methods instead of using Debug in each Groovy files
> *Currently used:* Debug.logError(MESSAGE)
> *Proposed Use:* logError(MESSAGE)
>
> It will benefit us to remove the module from each groovy file as it is already handled in GroovyBaseScript.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)