[Pkg-owncloud-commits] [owncloud] 44/86: ILogger has no logException() - fixes #20797

David Prévot taffit at moszumanska.debian.org
Tue Dec 22 16:51:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.1.5
in repository owncloud.

commit ce2e172513017c99b5b0a904fe4b64ec6235df7b
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Mon Dec 7 12:11:00 2015 +0100

    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 b8ef29e..770dc4a 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 3ed343b..842ba4f 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 '';
 		}
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list