diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-10-07 15:35:47 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-10-07 15:35:47 +0200 |
commit | bcf670e6b568497f4d1b4ddfa8673d4291b9b187 (patch) | |
tree | 39fc2e6db573d05be32be71b6eabe291ccd73313 | |
parent | 414430980a9efa3ced924d092ef50d336b2b7dde (diff) | |
download | nextcloud-server-bcf670e6b568497f4d1b4ddfa8673d4291b9b187.tar.gz nextcloud-server-bcf670e6b568497f4d1b4ddfa8673d4291b9b187.zip |
feat(transfer-ownership): Improve verbose output of command
Makes debbuging way easier
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | apps/files/lib/Service/OwnershipTransferService.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php index 14cbe882245..5a57fae5075 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -420,6 +420,7 @@ class OwnershipTransferService { foreach ($shares as ['share' => $share, 'suffix' => $suffix]) { try { + $output->writeln('Transfering share ' . $share->getId() . ' of type ' . $share->getShareType(), OutputInterface::VERBOSITY_VERBOSE); if ($share->getShareType() === IShare::TYPE_USER && $share->getSharedWith() === $destinationUid) { // Unmount the shares before deleting, so we don't try to get the storage later on. @@ -457,6 +458,7 @@ class OwnershipTransferService { // Try to get the new ID from the target path and suffix of the share $node = $rootFolder->get(Filesystem::normalizePath($targetLocation . '/' . $suffix)); $newNodeId = $node->getId(); + $output->writeln('Had to change node id to ' . $newNodeId, OutputInterface::VERBOSITY_VERY_VERBOSE); } $share->setNodeId($newNodeId); |