aboutsummaryrefslogtreecommitdiffstats
path: root/status.php
diff options
context:
space:
mode:
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]);
}