mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
refactor(OC_Hook): Remove deprecated ILogger
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
69abd8851b
commit
0d31976690
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue