aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-04-20 14:35:37 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-22 20:41:49 +0200
commitdd34cb75404fb806da7e780bc5804fc958a75456 (patch)
tree9a8298a0e72f004ed3ff90984f2f19c509b4c007 /apps/federatedfilesharing
parent8748e636f69c290926a297a24d21b248ad58de53 (diff)
downloadnextcloud-server-dd34cb75404fb806da7e780bc5804fc958a75456.tar.gz
nextcloud-server-dd34cb75404fb806da7e780bc5804fc958a75456.zip
Less deprecated calls to OCP\Util::writeLog
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r--apps/federatedfilesharing/lib/Controller/RequestHandlerController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
index 90346546a23..4953b7c81a2 100644
--- a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
+++ b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
@@ -140,13 +140,14 @@ class RequestHandlerController extends OCSController {
}
// FIXME this should be a method in the user management instead
- \OCP\Util::writeLog('files_sharing', 'shareWith before, ' . $shareWith, \OCP\Util::DEBUG);
+ $logger = \OC::$server->getLogger();
+ $logger->debug('shareWith before, ' . $shareWith, ['app' => 'files_sharing']);
\OCP\Util::emitHook(
'\OCA\Files_Sharing\API\Server2Server',
'preLoginNameUsedAsUserName',
array('uid' => &$shareWith)
);
- \OCP\Util::writeLog('files_sharing', 'shareWith after, ' . $shareWith, \OCP\Util::DEBUG);
+ $logger->debug('shareWith after, ' . $shareWith, ['app' => 'files_sharing']);
if (!\OC::$server->getUserManager()->userExists($shareWith)) {
throw new OCSException('User does not exists', 400);