From 4ba30d40cfc892bee0ea28486e63c479e1aadd20 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 22 Aug 2022 15:29:54 +0200 Subject: Switch to string keys for argument of GenericEvent for OC\DB\Migrator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems checkTable is actually never dispatched? Signed-off-by: Côme Chilliet --- lib/private/Updater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/Updater.php') diff --git a/lib/private/Updater.php b/lib/private/Updater.php index da989c4db91..b25bb76e957 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -467,13 +467,13 @@ class Updater extends BasicEmitter { if (!$event instanceof GenericEvent) { return; } - $log->info('\OC\DB\Migrator::executeSql: ' . $event->getSubject() . ' (' . $event->getArgument(0) . ' of ' . $event->getArgument(1) . ')', ['app' => 'updater']); + $log->info('\OC\DB\Migrator::executeSql: ' . $event->getSubject() . ' (' . $event->getArgument('step') . ' of ' . $event->getArgument('max') . ')', ['app' => 'updater']); }); $dispatcher->addListener('\OC\DB\Migrator::checkTable', function ($event) use ($log) { if (!$event instanceof GenericEvent) { return; } - $log->info('\OC\DB\Migrator::checkTable: ' . $event->getSubject() . ' (' . $event->getArgument(0) . ' of ' . $event->getArgument(1) . ')', ['app' => 'updater']); + $log->info('\OC\DB\Migrator::checkTable: ' . $event->getSubject() . ' (' . $event->getArgument('step') . ' of ' . $event->getArgument('max') . ')', ['app' => 'updater']); }); $repairListener = function ($event) use ($log) { -- cgit v1.2.3