From 93a99b561c68394921470832ac043066b6365d50 Mon Sep 17 00:00:00 2001 From: shimon Date: Wed, 7 Feb 2024 11:54:18 +0200 Subject: [PATCH] remove debug lines --- src/Appwrite/Event/Usage.php | 8 -------- src/Appwrite/Platform/Workers/UsageDump.php | 5 ----- 2 files changed, 13 deletions(-) diff --git a/src/Appwrite/Event/Usage.php b/src/Appwrite/Event/Usage.php index 0774534e36..ded276e166 100644 --- a/src/Appwrite/Event/Usage.php +++ b/src/Appwrite/Event/Usage.php @@ -43,14 +43,6 @@ class Usage extends Event */ public function addMetric(string $key, int $value): self { - //Todo debug (to be removed later @shimon) -// if ($key === 'users') { -// if ($value < 0) { -// console::log('@negative=' . $value); -// } else { -// console::log('@positive=' . $value); -// } -// } $this->metrics[] = [ 'key' => $key, 'value' => $value, diff --git a/src/Appwrite/Platform/Workers/UsageDump.php b/src/Appwrite/Platform/Workers/UsageDump.php index 5221d58b2c..24fe4ccccd 100644 --- a/src/Appwrite/Platform/Workers/UsageDump.php +++ b/src/Appwrite/Platform/Workers/UsageDump.php @@ -86,11 +86,6 @@ class UsageDump extends Action ])); } catch (Duplicate $th) { if ($value < 0) { - //Todo debug (to be removed later @shimon) -// var_dump([ -// 'id' => $time . '_' . $period . '_' . $key, -// 'value' => $value, -// ]); $dbForProject->decreaseDocumentAttribute( 'stats_v2', $id,