BUG 5737 The cron.php script should write something ... solved

- The cron.php script should write something in the shared/log/cron.log file when a new case started or an event is executed
This commit is contained in:
Alvaro Campos
2012-06-21 18:29:13 -04:00
parent 5c03a79acd
commit 907f47163d
2 changed files with 7 additions and 1 deletions

View File

@@ -320,6 +320,10 @@ function executeScheduledCases($sNow=null){
$sNow = isset($sNow)? $sNow: date('Y-m-d H:i:s');
$oCaseScheduler = new CaseScheduler;
$oCaseScheduler->caseSchedulerCron($sNow);
$log = array();
foreach ($log as $value){
saveLog('executeScheduledCases', 'action', "OK Case# $value");
}
setExecutionResultMessage('DONE');
} catch(Exception $oError){
setExecutionResultMessage('WITH ERRORS', 'error');