Added additional arguments to method call 75/19775/1
authorJim Hahn <jrh3@att.com>
Thu, 19 Oct 2017 17:11:47 +0000 (13:11 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 19 Oct 2017 17:28:11 +0000 (13:28 -0400)
The code already included "BPMN" and MsoLogger.getServiceName() as
additional arguments in the call to warn() and error().  Simply added
those same arguments to the call to info(), to match the method
signature.

Issue-Id: SO-244
Change-Id: Ic6297d67329358a3b9cdb480d930dc032b7029a2
Signed-off-by: Jim Hahn <jrh3@att.com>
bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/MsoUtils.groovy

index cd5ae79..94b4236 100644 (file)
@@ -283,7 +283,7 @@ class MsoUtils {
        def log(logmode,logtxt,isDebugLogEnabled="false"){\r
                MsoLogger msoLogger = MsoLogger.getMsoLogger(MsoLogger.Catalog.BPEL);\r
                if ("INFO"==logmode) {\r
-                       msoLogger.info(MessageEnum.BPMN_GENERAL_EXCEPTION_ARG, logtxt);\r
+                       msoLogger.info(MessageEnum.BPMN_GENERAL_EXCEPTION_ARG, logtxt, "BPMN", MsoLogger.getServiceName());\r
                } else if ("WARN"==logmode) {\r
                        // to see the warning text displayed in the log entry, the text must also be passed as arg0 (2nd argument) to invoke the correct MsoLogger warn() method\r
                        msoLogger.warn (MessageEnum.BPMN_GENERAL_WARNING, logtxt, "BPMN", MsoLogger.getServiceName(), MsoLogger.ErrorCode.UnknownError, logtxt);\r