summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-10 14:28:09 +0100
committerGitHub <noreply@github.com>2017-01-10 14:28:09 +0100
commit30689f338faf5327e13b65d3b4a2d85f9e79064d (patch)
treec6c973f58a7b0afb47cb31ef89b8fc215f435913 /lib/base.php
parentaee11009bd8c594adb16fb40f890b231d0ecc2ad (diff)
parent54f96e5f58d0e5f7239e7274ac239fec807fa206 (diff)
downloadnextcloud-server-30689f338faf5327e13b65d3b4a2d85f9e79064d.tar.gz
nextcloud-server-30689f338faf5327e13b65d3b4a2d85f9e79064d.zip
Merge pull request #2914 from nextcloud/logrotate-logfile
Get the logfile location while running the logrotate cron job instead…
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 8b271010b10..23eda212f03 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -883,7 +883,7 @@ class OC {
if ($systemConfig->getValue('installed', false) && $systemConfig->getValue('log_rotate_size', false) && !self::checkUpgrade(false)) {
//don't try to do this before we are properly setup
//use custom logfile path if defined, otherwise use default of nextcloud.log in data directory
- \OCP\BackgroundJob::registerJob('OC\Log\Rotate', $systemConfig->getValue('logfile', $systemConfig->getValue('datadirectory', OC::$SERVERROOT . '/data') . '/nextcloud.log'));
+ \OC::$server->getJobList()->add('OC\Log\Rotate');
}
}