summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-05-21 17:55:39 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-05-21 17:55:39 +0200
commitc586d1f4d550563310b998a724309a6e645e8729 (patch)
tree142a86309b0cfb1162ddcb7eb0fd5f16925706ef
parent88d26aac7bded0267a7af4ba26a7534a73851e55 (diff)
parent954d5b27ff9bdb98cf6d2663613e38c09abe274d (diff)
downloadnextcloud-server-c586d1f4d550563310b998a724309a6e645e8729.tar.gz
nextcloud-server-c586d1f4d550563310b998a724309a6e645e8729.zip
Merge pull request #8652 from owncloud/logfile_rotate
rotate custom logfile if defined
-rw-r--r--lib/base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index abb76b94a5d..a022b9d005b 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -627,7 +627,8 @@ class OC {
public static function registerLogRotate() {
if (OC_Config::getValue('installed', false) && OC_Config::getValue('log_rotate_size', false) && !self::needUpgrade()) {
//don't try to do this before we are properly setup
- \OCP\BackgroundJob::registerJob('OC\Log\Rotate', OC_Config::getValue("datadirectory", OC::$SERVERROOT . '/data') . '/owncloud.log');
+ //use custom logfile path if defined, otherwise use default of owncloud.log in data directory
+ \OCP\BackgroundJob::registerJob('OC\Log\Rotate', OC_Config::getValue('logfile', OC_Config::getValue("datadirectory", OC::$SERVERROOT . '/data') . '/owncloud.log'));
}
}