Skip to content

Commit 34699f4

Browse files
author
Branislav Viest
committed
Fixed cron logs rotation
Cron logs are in the private directory, not in log directory
1 parent 5dbcd93 commit 34699f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/200-logfiles.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function onRunJob() {
124124

125125
$cron_logfiles = array('cron.log', 'cron_error.log', 'cron_wget.log');
126126
foreach($cron_logfiles as $cron_logfile) {
127-
$cron_logfile = $rec['document_root'].'/' . $log_folder . '/' . $cron_logfile;
127+
$cron_logfile = $rec['document_root'].'/private/' . $cron_logfile;
128128

129129
// rename older files (move up by one)
130130
$num = $log_retention;

0 commit comments

Comments
 (0)