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;
|
||||
$rotate = filemtime($logdir.'/rotate');
|
||||
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) {
|
||||
$logfile=$logdir.'/'.$logfile;
|
||||
if(!is_file($logfile)) {
|
||||
|
|
Loading…
Reference in New Issue