diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-22 15:29:54 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-25 16:13:46 +0200 |
commit | 4ba30d40cfc892bee0ea28486e63c479e1aadd20 (patch) | |
tree | 0be3680618181f1a9fc760f0f481ce6424dc045e /lib/private/Updater.php | |
parent | 5509063caac2964bea8e33d272238f266ca6749b (diff) | |
download | nextcloud-server-4ba30d40cfc892bee0ea28486e63c479e1aadd20.tar.gz nextcloud-server-4ba30d40cfc892bee0ea28486e63c479e1aadd20.zip |
Switch to string keys for argument of GenericEvent for OC\DB\Migrator
It seems checkTable is actually never dispatched?
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r-- | lib/private/Updater.php | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |