From ce2e172513017c99b5b0a904fe4b64ec6235df7b Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Mon, 7 Dec 2015 12:11:00 +0100 Subject: ILogger has no logException() - fixes #20797 --- apps/files_sharing/lib/cache.php | 2 +- lib/private/route/router.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php index b8ef29e3436..770dc4a6147 100644 --- a/apps/files_sharing/lib/cache.php +++ b/apps/files_sharing/lib/cache.php @@ -66,7 +66,7 @@ class Shared_Cache extends Cache { try { \OC\Files\Filesystem::initMountPoints($source['fileOwner']); } catch(NoUserException $e) { - \OC::$server->getLogger()->logException($e, ['app' => 'files_sharing']); + \OCP\Util::logException('files_sharing', $e); return false; } $mounts = \OC\Files\Filesystem::getMountByNumericId($source['storage']); diff --git a/lib/private/route/router.php b/lib/private/route/router.php index 3ed343b348d..842ba4f11b6 100644 --- a/lib/private/route/router.php +++ b/lib/private/route/router.php @@ -316,7 +316,7 @@ class Router implements IRouter { try { return $this->getGenerator()->generate($name, $parameters, $absolute); } catch (RouteNotFoundException $e) { - $this->logger->logException($e); + \OCP\Util::logException('router', $e); return ''; } } -- cgit v1.2.3