Skip to content

Commit b41dfdd

Browse files
author
Marius Cramer
committed
Cron log should always be rotated, not depending on size
1 parent da0a817 commit b41dfdd

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
@@ -125,7 +125,7 @@ public function onRunJob() {
125125
}
126126

127127
// compress current logfile
128-
if(is_file($cron_logfile) && filesize($cron_logfile) > 10000000) {
128+
if(is_file($cron_logfile)) {
129129
exec("gzip -c $cron_logfile > $cron_logfile.1.gz");
130130
exec("cat /dev/null > $cron_logfile");
131131
}

0 commit comments

Comments
 (0)