HOR-1646 "Store the new ProcessMaker log..."
This commit is contained in:
@@ -267,7 +267,7 @@ class DataBaseMaintenance
|
|||||||
// mysql_escape_string("';");
|
// mysql_escape_string("';");
|
||||||
if (! @mysql_query( $sql )) {
|
if (! @mysql_query( $sql )) {
|
||||||
$ws = (defined("SYS_SYS"))? SYS_SYS : "Wokspace Undefined";
|
$ws = (defined("SYS_SYS"))? SYS_SYS : "Wokspace Undefined";
|
||||||
Bootstrap::registerMonolog('MysqlCron', 400, mysql_error(), array('sql'=>$sql), $ws, 'mysql.log');
|
Bootstrap::registerMonolog('MysqlCron', 400, mysql_error(), array('sql'=>$sql), $ws, 'processmaker.log');
|
||||||
$varRes = mysql_error() . "\n";
|
$varRes = mysql_error() . "\n";
|
||||||
G::outRes( $varRes );
|
G::outRes( $varRes );
|
||||||
return false;
|
return false;
|
||||||
@@ -288,7 +288,7 @@ class DataBaseMaintenance
|
|||||||
$sql = "LOAD DATA INFILE '$backupFile' INTO TABLE $tableName FIELDS TERMINATED BY '\t|\t' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\t\t\r\r\n'";
|
$sql = "LOAD DATA INFILE '$backupFile' INTO TABLE $tableName FIELDS TERMINATED BY '\t|\t' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\t\t\r\r\n'";
|
||||||
if (! @mysql_query( $sql )) {
|
if (! @mysql_query( $sql )) {
|
||||||
$ws = (defined("SYS_SYS"))? SYS_SYS : "Wokspace Undefined";
|
$ws = (defined("SYS_SYS"))? SYS_SYS : "Wokspace Undefined";
|
||||||
Bootstrap::registerMonolog('MysqlCron', 400, mysql_error(), array('sql'=>$sql), $ws, 'mysql.log');
|
Bootstrap::registerMonolog('MysqlCron', 400, mysql_error(), array('sql'=>$sql), $ws, 'processmaker.log');
|
||||||
$varRes = mysql_error() . "\n";
|
$varRes = mysql_error() . "\n";
|
||||||
G::outRes( $varRes );
|
G::outRes( $varRes );
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ class PMException extends Exception
|
|||||||
|
|
||||||
public function registerErrorLog($error, $token){
|
public function registerErrorLog($error, $token){
|
||||||
$ws = (defined("SYS_SYS"))? SYS_SYS : "Wokspace Undefined";
|
$ws = (defined("SYS_SYS"))? SYS_SYS : "Wokspace Undefined";
|
||||||
Bootstrap::registerMonolog('ExceptionCron', 400, $error->getMessage(), array('token'=>$token), $ws, 'exception.log');
|
Bootstrap::registerMonolog('ExceptionCron', 400, $error->getMessage(), array('token'=>$token), $ws, 'processmaker.log');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4129,7 +4129,7 @@ class Processes
|
|||||||
try {
|
try {
|
||||||
$result = $scriptTask->create($processUid, $record);
|
$result = $scriptTask->create($processUid, $record);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Bootstrap::registerMonolog('DataError', 400, $e->getMessage(), $record, SYS_SYS, 'processImporter.log');
|
Bootstrap::registerMonolog('DataError', 400, $e->getMessage(), $record, SYS_SYS, 'processmaker.log');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|||||||
@@ -475,7 +475,7 @@ class EmailEvent
|
|||||||
\PMFSendMessage($appUID, $configEmailData['MESS_ACCOUNT'], $emailTo, '', '', $subject,
|
\PMFSendMessage($appUID, $configEmailData['MESS_ACCOUNT'], $emailTo, '', '', $subject,
|
||||||
$contentFile['prf_filename'], array(), array(), true, 0, $configEmailData);
|
$contentFile['prf_filename'], array(), array(), true, 0, $configEmailData);
|
||||||
} else {
|
} else {
|
||||||
\Bootstrap::registerMonolog('EmailEventMailError', 200, \G::LoadTranslation('ID_EMAIL_EVENT_CONFIGURATION_EMAIL', array($eventUid, $prj_uid)), ['eventUid' => $eventUid, 'prj_uid' => $prj_uid], SYS_SYS, 'emailEvent.log');
|
\Bootstrap::registerMonolog('EmailEventMailError', 200, \G::LoadTranslation('ID_EMAIL_EVENT_CONFIGURATION_EMAIL', array($eventUid, $prj_uid)), ['eventUid' => $eventUid, 'prj_uid' => $prj_uid], SYS_SYS, 'processmaker.log');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -530,4 +530,3 @@ class EmailEvent
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ class Light
|
|||||||
$response['caseNumber'] = $aData['CASE_NUMBER'];
|
$response['caseNumber'] = $aData['CASE_NUMBER'];
|
||||||
|
|
||||||
//Log
|
//Log
|
||||||
\Bootstrap::registerMonolog('create-case', 200, "Create case", ['application_uid' => $aData['APPLICATION'], 'usr_uid' => $userId], SYS_SYS, 'mobileLogs.log');
|
\Bootstrap::registerMonolog('MobileCreateCase', 200, "Create case", ['application_uid' => $aData['APPLICATION'], 'usr_uid' => $userId], SYS_SYS, 'processmaker.log');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$response['status'] = 'failure';
|
$response['status'] = 'failure';
|
||||||
$response['message'] = $e->getMessage();
|
$response['message'] = $e->getMessage();
|
||||||
@@ -539,7 +539,7 @@ class Light
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Log
|
//Log
|
||||||
\Bootstrap::registerMonolog('route-case', 200, 'Route case', ['application_uid' => $applicationUid, 'usr_uid' => $userUid], SYS_SYS, 'mobileLogs.log');
|
\Bootstrap::registerMonolog('MobileRouteCase', 200, 'Route case', ['application_uid' => $applicationUid, 'usr_uid' => $userUid], SYS_SYS, 'processmaker.log');
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
@@ -1343,4 +1343,3 @@ class Light
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -661,10 +661,9 @@ class MessageApplication
|
|||||||
,'inpDocUid'=> $inpDocUid
|
,'inpDocUid'=> $inpDocUid
|
||||||
,'url' => $url
|
,'url' => $url
|
||||||
);
|
);
|
||||||
\Bootstrap::registerMonolog('MessageEventCron', $level, $message, $aContext, SYS_SYS, 'messageevent.log');
|
\Bootstrap::registerMonolog('MessageEventCron', $level, $message, $aContext, SYS_SYS, 'processmaker.log');
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1211,7 +1211,7 @@ class TimerEvent
|
|||||||
,'inpDocUid'=> $inpDocUid
|
,'inpDocUid'=> $inpDocUid
|
||||||
,'url' => $url
|
,'url' => $url
|
||||||
);
|
);
|
||||||
\Bootstrap::registerMonolog('TimerEventCron', $level, $message, $aContext, SYS_SYS, 'timerevent.log');
|
\Bootstrap::registerMonolog('TimerEventCron', $level, $message, $aContext, SYS_SYS, 'processmaker.log');
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
@@ -1733,4 +1733,3 @@ class TimerEvent
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user