diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-14 23:44:59 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-18 16:38:01 +0100 |
commit | bcba1a97adff176e503375ef714df8d692f68d49 (patch) | |
tree | 08097b50d4219e1a52aa7540b596b36faca4e974 /lib/private/Files/Mount | |
parent | a02a7593cf07bee39542a263ddfa22283451ce44 (diff) | |
download | nextcloud-server-bcba1a97adff176e503375ef714df8d692f68d49.tar.gz nextcloud-server-bcba1a97adff176e503375ef714df8d692f68d49.zip |
Use fallback path if data dir is not available for Storage/Local.php
Found while testing strict types for PHP7+.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Mount')
-rw-r--r-- | lib/private/Files/Mount/MountPoint.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Mount/MountPoint.php b/lib/private/Files/Mount/MountPoint.php index bff1f2e3f0c..26150de2bd1 100644 --- a/lib/private/Files/Mount/MountPoint.php +++ b/lib/private/Files/Mount/MountPoint.php @@ -152,7 +152,7 @@ class MountPoint implements IMountPoint { // the root storage could not be initialized, show the user! throw new \Exception('The root storage could not be initialized. Please contact your local administrator.', $exception->getCode(), $exception); } else { - \OCP\Util::writeLog('core', $exception->getMessage(), \OCP\Util::ERROR); + \OC::$server->getLogger()->logException($exception, ['level' => \OCP\Util::ERROR]); } return; } |