Add expire.log to log rotation in cron.php
This commit is contained in:
parent
c46e9a3767
commit
ac010e699c
@ -71,7 +71,7 @@ function log_rotate() {
|
|||||||
global $logdir;
|
global $logdir;
|
||||||
$rotate = filemtime($logdir.'/rotate');
|
$rotate = filemtime($logdir.'/rotate');
|
||||||
if((time() - $rotate) > 86400) {
|
if((time() - $rotate) > 86400) {
|
||||||
$log_files = array('nntp.log', 'spoolnews.log', 'nocem.log', 'newsportal.log');
|
$log_files = array('nntp.log', 'spoolnews.log', 'nocem.log', 'newsportal.log', 'expire.log');
|
||||||
foreach($log_files as $logfile) {
|
foreach($log_files as $logfile) {
|
||||||
$logfile=$logdir.'/'.$logfile;
|
$logfile=$logdir.'/'.$logfile;
|
||||||
if(!is_file($logfile)) {
|
if(!is_file($logfile)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user