summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-04-11 02:10:54 +0200
committerGitHub <noreply@github.com>2018-04-11 02:10:54 +0200
commite302266a6ab824c7ee11219eb1ff9eeee0bd19a4 (patch)
treead40f58a88cafa77fb5371ec6fecf9b61e5948db /lib/private
parent52c0e02bdcb734341ed53ef66b4b49bc47a47ff7 (diff)
parent058f8123e61863f27ca138370853f71f70e90233 (diff)
downloadnextcloud-server-e302266a6ab824c7ee11219eb1ff9eeee0bd19a4.tar.gz
nextcloud-server-e302266a6ab824c7ee11219eb1ff9eeee0bd19a4.zip
Merge pull request #9137 from nextcloud/default-log-rotate-size
Set the default log rotate size to 100 MB
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Log/Rotate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Log/Rotate.php b/lib/private/Log/Rotate.php
index d7c554374fd..97a772b5251 100644
--- a/lib/private/Log/Rotate.php
+++ b/lib/private/Log/Rotate.php
@@ -36,7 +36,7 @@ class Rotate extends \OC\BackgroundJob\Job {
public function run($dummy) {
$systemConfig = \OC::$server->getSystemConfig();
$logFile = $systemConfig->getValue('logfile', $systemConfig->getValue('datadirectory', \OC::$SERVERROOT . '/data') . '/nextcloud.log');
- $this->max_log_size = \OC::$server->getConfig()->getSystemValue('log_rotate_size', false);
+ $this->max_log_size = \OC::$server->getConfig()->getSystemValue('log_rotate_size', 100 * 1024 * 1024);
if ($this->max_log_size) {
$filesize = @filesize($logFile);
if ($filesize >= $this->max_log_size) {