From d50dcad24a66e144d1f1aeca269ef69f2e4d2add Mon Sep 17 00:00:00 2001 From: fogelito Date: Wed, 20 May 2026 13:15:54 +0300 Subject: [PATCH] Update message --- src/Appwrite/Platform/Workers/Deletes.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index 80bdef8ad7..8e5e7e04fe 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -1583,6 +1583,11 @@ class Deletes extends Action ): void { $start = \microtime(true); + $message = 'collection:'.$database->getNamespace().'_'.$collection; + if($database->getSharedTables()){ + $message .= ' Tenant:'.$database->getTenant(); + } + /** * deleteDocuments uses a cursor, we need to add a unique order by field or use default */ @@ -1593,13 +1598,13 @@ class Deletes extends Action onNext: $callback ); } catch (Throwable $th) { - $tenant = $database->getSharedTables() ? 'Tenant:' . $database->getTenant() : ''; - Console::error("Failed to delete documents for collection:{$database->getNamespace()}_{$collection} {$tenant} :{$th->getMessage()}"); + $tenant = $database->getSharedTables() ? 'Tenant:'. $database->getTenant() : ''; + Console::error("Failed to delete documents for {$message} :{$th->getMessage()}"); return; } $end = \microtime(true); - Console::info("Deleted {$count} documents by group in " . ($end - $start) . " seconds"); + Console::info("Deleted {$count} documents by group in " . ($end - $start) . " seconds {$message}"); } /** @@ -1646,7 +1651,12 @@ class Deletes extends Action $end = \microtime(true); - Console::info("Listed {$count} documents by group in " . ($end - $start) . " seconds"); + $message = 'collection:'.$database->getNamespace().'_'.$collection; + if($database->getSharedTables()){ + $message .= ' Tenant:'.$database->getTenant(); + } + + Console::info("Listed {$count} documents by group in " . ($end - $start) . " seconds {$message}"); } /**