summaryrefslogtreecommitdiffstats
path: root/lib/private/Updater.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-02-01 14:56:56 +0100
committerMorris Jobke <hey@morrisjobke.de>2021-03-18 08:45:17 +0100
commit9e3775618bde7c0bf57fa7248e9a7dc2dbb47f4d (patch)
tree4749233c246458fd57b0b33c2447265a11263a3f /lib/private/Updater.php
parent9135a42781f52e9853cd5a8c831cb6cc2fcdd7f5 (diff)
downloadnextcloud-server-9e3775618bde7c0bf57fa7248e9a7dc2dbb47f4d.tar.gz
nextcloud-server-9e3775618bde7c0bf57fa7248e9a7dc2dbb47f4d.zip
log full expection during repair step
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r--lib/private/Updater.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index 65e2c9bd57f..f6ba27991e7 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -45,6 +45,7 @@ use OC_App;
use OCP\IConfig;
use OCP\ILogger;
use OCP\Util;
+use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
/**
@@ -243,7 +244,7 @@ class Updater extends BasicEmitter {
file_put_contents($this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/.ocdata', '');
// pre-upgrade repairs
- $repair = new Repair(Repair::getBeforeUpgradeRepairSteps(), \OC::$server->getEventDispatcher());
+ $repair = new Repair(Repair::getBeforeUpgradeRepairSteps(), \OC::$server->getEventDispatcher(), \OC::$server->get(LoggerInterface::class));
$repair->run();
$this->doCoreUpgrade();
@@ -276,7 +277,7 @@ class Updater extends BasicEmitter {
}
// post-upgrade repairs
- $repair = new Repair(Repair::getRepairSteps(), \OC::$server->getEventDispatcher());
+ $repair = new Repair(Repair::getRepairSteps(), \OC::$server->getEventDispatcher(), \OC::$server->get(LoggerInterface::class));
$repair->run();
//Invalidate update feed