Fixed exception when log file could not be renamed

This commit is contained in:
Franck Allimant
2013-12-05 13:01:43 +01:00
parent 0a7b8f05d0
commit 8e56fcc651

View File

@@ -78,10 +78,10 @@ class TlogDestinationFile extends AbstractTlogDestination
} while (file_exists($file_path_bk));
rename($file_path, $file_path_bk);
@rename($file_path, $file_path_bk);
touch($file_path);
chmod($file_path, 0666);
@touch($file_path);
@chmod($file_path, 0666);
}
$this->fh = fopen($file_path, $mode);