From bea79ba134e09152f10aa9c470f683755f37fb39 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 10 Nov 2025 18:23:15 +0530 Subject: [PATCH] throw error instead --- src/Appwrite/Platform/Workers/StatsUsage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/StatsUsage.php b/src/Appwrite/Platform/Workers/StatsUsage.php index 53ddb3a468..ec7dc69f6c 100644 --- a/src/Appwrite/Platform/Workers/StatsUsage.php +++ b/src/Appwrite/Platform/Workers/StatsUsage.php @@ -304,8 +304,7 @@ class StatsUsage extends Action // Skip invalid metrics if (!$this->isValidMetric($metricKey)) { - Console::warning('[' . DateTime::now() . '] Skipping unknown metric: ' . $metricKey); - continue; + throw new Exception('Invalid metric key: ' . $metricKey); } $this->keys++;