diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-11 02:10:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-11 02:10:54 +0200 |
commit | e302266a6ab824c7ee11219eb1ff9eeee0bd19a4 (patch) | |
tree | ad40f58a88cafa77fb5371ec6fecf9b61e5948db /core | |
parent | 52c0e02bdcb734341ed53ef66b4b49bc47a47ff7 (diff) | |
parent | 058f8123e61863f27ca138370853f71f70e90233 (diff) | |
download | nextcloud-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 'core')
-rw-r--r-- | core/Command/Log/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Log/File.php b/core/Command/Log/File.php index e5db2c1acc4..8be01d2b6ef 100644 --- a/core/Command/Log/File.php +++ b/core/Command/Log/File.php @@ -105,7 +105,7 @@ class File extends Command implements Completion\CompletionAwareInterface { $defaultLogFile = rtrim($dataDir, '/').'/nextcloud.log'; $output->writeln('Log file: '.$this->config->getSystemValue('logfile', $defaultLogFile)); - $rotateSize = $this->config->getSystemValue('log_rotate_size', 0); + $rotateSize = $this->config->getSystemValue('log_rotate_size', 100*1024*1024); if ($rotateSize) { $rotateString = \OCP\Util::humanFileSize($rotateSize); } else { |