diff options
author | Louis Chemineau <louis@chmn.me> | 2024-02-08 15:23:28 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-02-08 15:23:28 +0100 |
commit | d9d60238c7aaab9c61bf2d50c15aa59bc88c8975 (patch) | |
tree | 4f0277b12a3608c09a88a67f3934b6174e47ba1d /core/ajax/update.php | |
parent | ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d (diff) | |
parent | ca5f7adebc671b9e18ecdba0afda62fc23a381e4 (diff) | |
download | nextcloud-server-d9d60238c7aaab9c61bf2d50c15aa59bc88c8975.tar.gz nextcloud-server-d9d60238c7aaab9c61bf2d50c15aa59bc88c8975.zip |
Merge branch 'master' of github.com:nextcloud/server
Diffstat (limited to 'core/ajax/update.php')
-rw-r--r-- | core/ajax/update.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index a826b6b7e7a..63d1bd3cf5e 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,10 +186,12 @@ if (\OCP\Util::needUpgrade()) { try { $updater->upgrade(); } catch (\Exception $e) { - \OC::$server->getLogger()->logException($e, [ - 'level' => ILogger::ERROR, - 'app' => 'update', - ]); + \OCP\Server::get(LoggerInterface::class)->error( + $e->getMessage(), + [ + 'exception' => $e, + 'app' => 'update', + ]); $eventSource->send('failure', get_class($e) . ': ' . $e->getMessage()); $eventSource->close(); exit(); |