Reverting G::log call in cron_single file
This commit is contained in:
@@ -909,12 +909,7 @@ function saveLog($sSource, $sType, $sDescription)
|
|||||||
}
|
}
|
||||||
|
|
||||||
G::verifyPath(PATH_DATA . "log" . PATH_SEP, true);
|
G::verifyPath(PATH_DATA . "log" . PATH_SEP, true);
|
||||||
|
G::log(date("Y-m-d H:i:s") . " | $sObject | " . $sSource . " | $sType | " . $sDescription . "\n", PATH_DATA);
|
||||||
//setExecutionMessage( PATH_DATA."log".PATH_SEP);
|
|
||||||
|
|
||||||
$oFile = @fopen(PATH_DATA . "log" . PATH_SEP . "cron.log", "a+");
|
|
||||||
@fwrite($oFile, date("Y-m-d H:i:s") . " | $sObject | " . $sSource . " | $sType | " . $sDescription . "\n");
|
|
||||||
@fclose($oFile);
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
//CONTINUE
|
//CONTINUE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user