You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2020/06/08 11:35:22 UTC

[ofbiz-framework] branch trunk updated: [Improved]: Overloaded groovy utility method to handle error logging with only throwable object as parameter. (OFBIZ-11762) (#194)

This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 5c5af78  [Improved]: Overloaded groovy utility method to handle error logging with only throwable object as parameter. (OFBIZ-11762) (#194)
5c5af78 is described below

commit 5c5af78ffe88059060c0fbdaf87a32fefc3af782
Author: Priya Sharma <pr...@gmail.com>
AuthorDate: Mon Jun 8 17:05:15 2020 +0530

    [Improved]: Overloaded groovy utility method to handle error logging with only throwable object as parameter. (OFBIZ-11762) (#194)
    
    Co-authored-by: Priya Sharma <pr...@example.com>
---
 .../groovy/org/apache/ofbiz/service/engine/GroovyBaseScript.groovy     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/framework/service/src/main/groovy/org/apache/ofbiz/service/engine/GroovyBaseScript.groovy b/framework/service/src/main/groovy/org/apache/ofbiz/service/engine/GroovyBaseScript.groovy
index 7fe1edb..0d0a33f 100644
--- a/framework/service/src/main/groovy/org/apache/ofbiz/service/engine/GroovyBaseScript.groovy
+++ b/framework/service/src/main/groovy/org/apache/ofbiz/service/engine/GroovyBaseScript.groovy
@@ -136,6 +136,9 @@ abstract class GroovyBaseScript extends Script {
     def logError(Throwable t, String message) {
         Debug.logError(t, message, getModule())
     }
+    def logError(Throwable t) {
+        Debug.logError(t, null, getModule())
+    }
     def logVerbose(String message) {
         Debug.logVerbose(message, getModule())
     }