chore: removing loggin

This commit is contained in:
Chirag Aggarwal 2025-07-03 22:37:31 +05:30
parent 172ba84ec8
commit 431a26e151
2 changed files with 0 additions and 9 deletions

View file

@ -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'] ?? '');

View file

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