aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-02-08 15:47:39 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-02-13 17:32:30 +0100
commitc0ce272e9c3a94ff98081c4f90a31ca611d28323 (patch)
treee92ba163d28ac3eb888a95718a85a78909cdc7c7 /lib/public/AppFramework
parent8822b16d37de1d1a3cec959d184261152c42ae41 (diff)
downloadnextcloud-server-c0ce272e9c3a94ff98081c4f90a31ca611d28323.tar.gz
nextcloud-server-c0ce272e9c3a94ff98081c4f90a31ca611d28323.zip
chore: Migrate away from OC::$server->getLogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r--lib/public/AppFramework/App.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/AppFramework/App.php b/lib/public/AppFramework/App.php
index 4d6e9177b78..f62c464ea55 100644
--- a/lib/public/AppFramework/App.php
+++ b/lib/public/AppFramework/App.php
@@ -38,6 +38,7 @@ use OC\AppFramework\Routing\RouteConfig;
use OC\Route\Router;
use OC\ServerContainer;
use OCP\Route\IRouter;
+use Psr\Log\LoggerInterface;
/**
* Class App
@@ -98,8 +99,9 @@ class App {
}
if (!$setUpViaQuery && $applicationClassName !== \OCP\AppFramework\App::class) {
- \OC::$server->getLogger()->logException($e, [
+ \OCP\Server::get(LoggerInterface::class)->error($e->getMessage(), [
'app' => $appName,
+ 'exception' => $e,
]);
}
}