From bcba1a97adff176e503375ef714df8d692f68d49 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Sun, 14 Jan 2018 23:44:59 +0100 Subject: 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 Signed-off-by: Robin Appelman --- lib/private/Files/Mount/MountPoint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Files/Mount') 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; } -- cgit v1.2.3