[Pkg-owncloud-commits] [owncloud] 94/153: use custom logfile path if defined, otherwise use default of owncloud.log in data directory

David Prévot taffit at moszumanska.debian.org
Tue May 27 03:05:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 954d5b27ff9bdb98cf6d2663613e38c09abe274d
Author: scolebrook <scolebrook at mac.com>
Date:   Tue May 20 11:29:59 2014 -0400

    use custom logfile path if defined, otherwise use default of owncloud.log in data directory
---
 lib/base.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/base.php b/lib/base.php
index abb76b9..a022b9d 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'));
 		}
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list