summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-01-02 16:16:15 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-01-06 16:10:07 +0100
commit54f96e5f58d0e5f7239e7274ac239fec807fa206 (patch)
treee2ff56ce315ab6bf56f857f8213a717b1d777458 /lib/base.php
parent4a2fbe9a5b6fd17781dd6de78b1247824618d717 (diff)
downloadnextcloud-server-54f96e5f58d0e5f7239e7274ac239fec807fa206.tar.gz
nextcloud-server-54f96e5f58d0e5f7239e7274ac239fec807fa206.zip
Get the logfile location while running the logrotate cron job instead of when registering the job
Signed-off-by: Robin Appelman <robin@icewind.nl>
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 4a9158eff64..dd0918e7c4c 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -881,7 +881,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');
}
}