From 431a26e1512c49a48b9491cfa0b5eeec32ec37c9 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 3 Jul 2025 22:37:31 +0530 Subject: [PATCH] chore: removing loggin --- src/Appwrite/Network/Platform.php | 3 --- src/Appwrite/Network/Validator/Origin.php | 6 ------ 2 files changed, 9 deletions(-) diff --git a/src/Appwrite/Network/Platform.php b/src/Appwrite/Network/Platform.php index 1bf68c4483..71b4587824 100644 --- a/src/Appwrite/Network/Platform.php +++ b/src/Appwrite/Network/Platform.php @@ -2,8 +2,6 @@ namespace Appwrite\Network; -use Utopia\CLI\Console; - class Platform { public const TYPE_UNKNOWN = 'unknown'; @@ -102,7 +100,6 @@ class Platform public static function getSchemes(array $platforms): array { $schemes = []; - Console::log("Platforms: " . json_encode($platforms, JSON_PRETTY_PRINT)); foreach ($platforms as $platform) { $type = strtolower($platform['type'] ?? self::TYPE_UNKNOWN); $scheme = strtolower($platform['key'] ?? ''); diff --git a/src/Appwrite/Network/Validator/Origin.php b/src/Appwrite/Network/Validator/Origin.php index f793ea6c4e..59e06a8ea4 100644 --- a/src/Appwrite/Network/Validator/Origin.php +++ b/src/Appwrite/Network/Validator/Origin.php @@ -3,7 +3,6 @@ namespace Appwrite\Network\Validator; use Appwrite\Network\Platform; -use Utopia\CLI\Console; use Utopia\Validator; use Utopia\Validator\Hostname; @@ -43,11 +42,6 @@ class Origin extends Validator $this->scheme = $this->parseScheme($origin); $this->host = strtolower(parse_url($origin, PHP_URL_HOST) ?? ''); - Console::log("Scheme: " . $this->scheme); - Console::log("Host: " . $this->host); - Console::log("Hostnames: " . json_encode($this->hostnames, JSON_PRETTY_PRINT)); - Console::log("Schemes: " . json_encode($this->schemes, JSON_PRETTY_PRINT)); - $validator = new Hostname($this->hostnames); if (in_array($this->scheme, ['http', 'https']) && $validator->isValid($this->host)) { // Valid HTTP/HTTPS origin return true;