chore: Migrate away from OC::$server->getLogger

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet
2024-02-08 15:47:39 +01:00
committed by Côme Chilliet
parent 8822b16d37
commit c0ce272e9c
22 changed files with 127 additions and 76 deletions
+3 -1
View File
@@ -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]);
}