summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 239b073dc9e..e2bd03b491e 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -207,6 +207,10 @@ if (OC::checkUpgrade(false)) {
try {
$updater->upgrade();
} catch (\Exception $e) {
+ \OC::$server->getLogger()->logException($e, [
+ 'level' => \OCP\Util::ERROR,
+ 'app' => 'update',
+ ]);
$eventSource->send('failure', get_class($e) . ': ' . $e->getMessage());
$eventSource->close();
exit();