]> source.dussan.org Git - nextcloud-server.git/commitdiff
use custom logfile path if defined, otherwise use default of owncloud.log in data...
authorscolebrook <scolebrook@mac.com>
Tue, 20 May 2014 15:29:59 +0000 (11:29 -0400)
committerscolebrook <scolebrook@mac.com>
Tue, 20 May 2014 15:29:59 +0000 (11:29 -0400)
lib/base.php

index abb76b94a5de37db0e7a913f476db3c186ca96f7..a022b9d005b0d90ca0212aba78732ac0e263c483 100644 (file)
@@ -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'));
                }
        }