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++;