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;