aboutsummaryrefslogtreecommitdiffstats
path: root/core/ajax/update.php
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-02-08 15:31:19 +0100
committerLouis Chemineau <louis@chmn.me>2024-02-08 15:31:19 +0100
commit898df41de968321926e10ad532a64c3915ddad29 (patch)
tree57a0e5ada151890ddf71550f22b502e1f67aeffd /core/ajax/update.php
parentd9d60238c7aaab9c61bf2d50c15aa59bc88c8975 (diff)
downloadnextcloud-server-898df41de968321926e10ad532a64c3915ddad29.tar.gz
nextcloud-server-898df41de968321926e10ad532a64c3915ddad29.zip
Revert "Merge branch 'master' of github.com:nextcloud/server"
This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
Diffstat (limited to 'core/ajax/update.php')
-rw-r--r--core/ajax/update.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 63d1bd3cf5e..a826b6b7e7a 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -43,8 +43,8 @@ use OCP\EventDispatcher\IEventDispatcher;
use OCP\IEventSource;
use OCP\IEventSourceFactory;
use OCP\IL10N;
+use OCP\ILogger;
use OCP\L10N\IFactory;
-use Psr\Log\LoggerInterface;
if (!str_contains(@ini_get('disable_functions'), 'set_time_limit')) {
@set_time_limit(0);
@@ -186,12 +186,10 @@ if (\OCP\Util::needUpgrade()) {
try {
$updater->upgrade();
} catch (\Exception $e) {
- \OCP\Server::get(LoggerInterface::class)->error(
- $e->getMessage(),
- [
- 'exception' => $e,
- 'app' => 'update',
- ]);
+ \OC::$server->getLogger()->logException($e, [
+ 'level' => ILogger::ERROR,
+ 'app' => 'update',
+ ]);
$eventSource->send('failure', get_class($e) . ': ' . $e->getMessage());
$eventSource->close();
exit();