aboutsummaryrefslogtreecommitdiffstats
path: root/status.php
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 /status.php
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 'status.php')
-rw-r--r--status.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/status.php b/status.php
index 62eb978781c..99371bbe693 100644
--- a/status.php
+++ b/status.php
@@ -33,6 +33,8 @@
*/
require_once __DIR__ . '/lib/versioncheck.php';
+use Psr\Log\LoggerInterface;
+
try {
require_once __DIR__ . '/lib/base.php';
@@ -62,5 +64,5 @@ try {
}
} catch (Exception $ex) {
http_response_code(500);
- \OC::$server->getLogger()->logException($ex, ['app' => 'remote']);
+ \OCP\Server::get(LoggerInterface::class)->error($ex->getMessage(), ['app' => 'remote','exception' => $ex]);
}