From b09386727b375ece173e5df334c792459ac1158d Mon Sep 17 00:00:00 2001 From: shimon Date: Sat, 10 Feb 2024 10:34:44 +0200 Subject: [PATCH] Usage logs text update --- src/Appwrite/Platform/Workers/Usage.php | 2 +- src/Appwrite/Platform/Workers/UsageDump.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Usage.php b/src/Appwrite/Platform/Workers/Usage.php index d65ab0968d..49f3344906 100644 --- a/src/Appwrite/Platform/Workers/Usage.php +++ b/src/Appwrite/Platform/Workers/Usage.php @@ -91,7 +91,7 @@ class Usage extends Action $this->keys >= self::KEYS_THRESHOLD || (time() - $this->lastTriggeredTime > $aggregationInterval && $this->keys > 0) ) { - console::log('[' . DateTime::now() . '] stats aggregation sent to worker with ' . $this->keys . ' keys'); + console::warning('[' . DateTime::now() . '] Aggregated ' . $this->keys . ' keys'); $queueForUsageDump ->setStats($this->stats) diff --git a/src/Appwrite/Platform/Workers/UsageDump.php b/src/Appwrite/Platform/Workers/UsageDump.php index a45cd40995..f563578984 100644 --- a/src/Appwrite/Platform/Workers/UsageDump.php +++ b/src/Appwrite/Platform/Workers/UsageDump.php @@ -64,7 +64,7 @@ class UsageDump extends Action continue; } - console::log('[' . DateTime::now() . '] aggregation received project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . $numberOfKeys . ' keys'); + console::log('[' . DateTime::now() . '] ProjectId [' . $project->getInternalId() . '] Database [' . $project['database'] . '] ' . $numberOfKeys . ' keys'); try { $dbForProject = $getProjectDB($project);