|
|
|
|
@ -17,7 +17,7 @@ namespace OC\Log; |
|
|
|
|
class Rotate extends \OC\BackgroundJob\Job { |
|
|
|
|
private $max_log_size; |
|
|
|
|
public function run($logFile) { |
|
|
|
|
$this->max_log_size = OC_Config::getValue('log_rotate_size', false); |
|
|
|
|
$this->max_log_size = \OC_Config::getValue('log_rotate_size', false); |
|
|
|
|
if ($this->max_log_size) { |
|
|
|
|
$filesize = @filesize($logFile); |
|
|
|
|
if ($filesize >= $this->max_log_size) { |
|
|
|
|
|