HOR-2977
Errors from triggers in a process need to be stored in a different file of the error_log.
This commit is contained in:
@@ -2614,9 +2614,6 @@ class wsBase
|
||||
$oPMScript->setScript( $row['TRI_WEBBOT'] );
|
||||
$oPMScript->execute();
|
||||
|
||||
//Log
|
||||
Bootstrap::registerMonolog('triggerExecutionTime', 200, 'Trigger execution time', ['proUid' => $appFields['APP_DATA']['PROCESS'], 'tasUid' => $appFields['APP_DATA']['TASK'], 'appUid' => $appFields['APP_DATA']['APPLICATION'], 'triggerInfo' => ['triUid' => $row['TRI_UID'], 'triExecutionTime' => $oPMScript->scriptExecutionTime]], SYS_SYS, 'processmaker.log');
|
||||
|
||||
if (isset($oPMScript->aFields["__ERROR__"]) && trim($oPMScript->aFields["__ERROR__"]) != "" && $oPMScript->aFields["__ERROR__"] != "none") {
|
||||
throw new Exception($oPMScript->aFields["__ERROR__"]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user