diff options
author | scolebrook <scolebrook@mac.com> | 2014-05-20 11:29:59 -0400 |
---|---|---|
committer | scolebrook <scolebrook@mac.com> | 2014-05-20 11:29:59 -0400 |
commit | 954d5b27ff9bdb98cf6d2663613e38c09abe274d (patch) | |
tree | 15646fc04b81c4ea2f4e83f2b9d1c702799a9cc6 /lib/base.php | |
parent | 40fc1d5b4b3b05b9d2e036f3d853668a38b0e0c2 (diff) | |
download | nextcloud-server-954d5b27ff9bdb98cf6d2663613e38c09abe274d.tar.gz nextcloud-server-954d5b27ff9bdb98cf6d2663613e38c09abe274d.zip |
use custom logfile path if defined, otherwise use default of owncloud.log in data directory
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 3 |
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')); } } |