mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
throw error instead
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user