summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-07 12:11:00 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-07 12:11:00 +0100
commitce2e172513017c99b5b0a904fe4b64ec6235df7b (patch)
treeab248ef080ef1b3e8429a48b36f7116e0b0838a3
parent563f0c8a81fb8dc37fb70a6fc23c01224ec496cf (diff)
downloadnextcloud-server-ce2e172513017c99b5b0a904fe4b64ec6235df7b.tar.gz
nextcloud-server-ce2e172513017c99b5b0a904fe4b64ec6235df7b.zip
ILogger has no logException() - fixes #20797
-rw-r--r--apps/files_sharing/lib/cache.php2
-rw-r--r--lib/private/route/router.php2
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 '';
}
}