diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-10 23:52:41 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-04-11 00:27:51 +0200 |
commit | 058f8123e61863f27ca138370853f71f70e90233 (patch) | |
tree | f00a3ecbb059183fae01838b39c421eb039bf47c /lib/private/Log | |
parent | 323ee3cbdc420f1009b6eb64b2df0f878ff39a14 (diff) | |
download | nextcloud-server-058f8123e61863f27ca138370853f71f70e90233.tar.gz nextcloud-server-058f8123e61863f27ca138370853f71f70e90233.zip |
Set the default log rotate size to 100 MB
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Log')
-rw-r--r-- | lib/private/Log/Rotate.php | 2 |
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) { |