PMCORE-1152 Unit test: Solve the issue in the execution pmfunction

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-02-12 18:02:29 -04:00
parent 7fd12c49b1
commit 11f52c96e9
4 changed files with 34 additions and 6 deletions

View File

@@ -350,14 +350,9 @@ function executeQuery ($SqlStatement, $DBConnectionUID = 'workflow', $aParameter
} catch (SQLException $sqle) {
//Logger
$aContext['action'] = 'execute-query';
$aContext['exception'] = (array)$sqle;
$aContext['SQLExceptionMessage'] = $sqle->getMessage();
\Bootstrap::registerMonolog('sqlExecution', 400, 'Sql Execution', $aContext, $sysSys, 'processmaker.log');
if (isset($sqle->xdebug_message)) {
error_log(print_r($sqle->xdebug_message, true));
} else {
error_log(print_r($sqle, true));
}
$con->rollback();
throw $sqle;
}