diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-15 01:37:11 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-19 00:35:21 +0200 |
commit | 0d31976690578c27cdd9de71e27e9a6084ead3a4 (patch) | |
tree | e9e01d07e38a6fd5d946bddfaf3433f94f317708 /lib | |
parent | 69abd8851b943e646f03ce654b1dae324381fdf0 (diff) | |
download | nextcloud-server-0d31976690578c27cdd9de71e27e9a6084ead3a4.tar.gz nextcloud-server-0d31976690578c27cdd9de71e27e9a6084ead3a4.zip |
refactor(OC_Hook): Remove deprecated ILogger
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/OC_Hook.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Hook.php b/lib/private/legacy/OC_Hook.php index 5c36a253895..e472b105498 100644 --- a/lib/private/legacy/OC_Hook.php +++ b/lib/private/legacy/OC_Hook.php @@ -5,6 +5,9 @@ * SPDX-FileCopyrightText: 2016 ownCloud, Inc. * SPDX-License-Identifier: AGPL-3.0-only */ + +use Psr\Log\LoggerInterface; + class OC_Hook { public static $thrownExceptions = []; @@ -82,7 +85,7 @@ class OC_Hook { call_user_func([ $i['class'], $i['name'] ], $params); } catch (Exception $e) { self::$thrownExceptions[] = $e; - \OC::$server->getLogger()->logException($e); + \OCP\Server::get(LoggerInterface::class)->error($e->getMessage(), ['exception' => $e]); if ($e instanceof \OCP\HintException) { throw $e; } |