Revert "BUG-13506 Corrección de formato"
This reverts commit 751efeb4fc2c872f0f0c9569949473618848d65e.
This commit is contained in:
@@ -1417,15 +1417,13 @@ class workspaceTools
|
||||
|
||||
public function backupLogFiles()
|
||||
{
|
||||
$config = System::getSystemConfiguration();
|
||||
|
||||
clearstatcache();
|
||||
$path = PATH_DATA . "log" . PATH_SEP;
|
||||
$filePath = $path . "cron.log";
|
||||
if (file_exists($filePath)) {
|
||||
$size = filesize($filePath);
|
||||
/* $config['size_log_file'] has the value 5000000 -> approximately 5 megabytes */
|
||||
if ($size > $config['size_log_file']) {
|
||||
/* 5000000 -> approximately 5 megabytes */
|
||||
if ($size > 5000000) {
|
||||
rename($filePath, $filePath . ".bak");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user