diff options
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 20bc3327f92..dfb588837f3 100644 --- a/lib/private/Log/Rotate.php +++ b/lib/private/Log/Rotate.php @@ -39,7 +39,7 @@ class Rotate extends \OCP\BackgroundJob\Job { $systemConfig = \OC::$server->getSystemConfig(); $this->filePath = $systemConfig->getValue('logfile', $systemConfig->getValue('datadirectory', \OC::$SERVERROOT . '/data') . '/nextcloud.log'); - $this->maxSize = \OC::$server->getConfig()->getSystemValue('log_rotate_size', 100 * 1024 * 1024); + $this->maxSize = \OC::$server->getConfig()->getSystemValueInt('log_rotate_size', 100 * 1024 * 1024); if ($this->shouldRotateBySize()) { $rotatedFile = $this->rotate(); $msg = 'Log file "'.$this->filePath.'" was over '.$this->maxSize.' bytes, moved to "'.$rotatedFile.'"'; |