mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
debug
This commit is contained in:
parent
7be7b3389c
commit
cf32ba0351
4 changed files with 5 additions and 7 deletions
|
|
@ -123,7 +123,6 @@ App::post('/v1/projects')
|
|||
}
|
||||
|
||||
$databases = Config::getParam('pools-database', []);
|
||||
var_dump($databases);
|
||||
$databaseOverride = System::getEnv('_APP_DATABASE_OVERRIDE');
|
||||
$index = \array_search($databaseOverride, $databases);
|
||||
if ($index !== false) {
|
||||
|
|
@ -198,9 +197,6 @@ App::post('/v1/projects')
|
|||
$dsn = new DSN('mysql://' . $dsn);
|
||||
}
|
||||
|
||||
|
||||
var_dump($dsn->getHost());
|
||||
|
||||
$adapter = $pools->get($dsn->getHost())->pop()->getResource();
|
||||
$dbForProject = new Database($adapter, $cache);
|
||||
$sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', ''));
|
||||
|
|
|
|||
|
|
@ -115,7 +115,8 @@ class Event
|
|||
|
||||
public function getSourceRegion(): string
|
||||
{
|
||||
return System::getEnv('_APP_REGION', 'default');
|
||||
var_dump('event Source Region='.System::getEnv('_APP_REGION'));
|
||||
return System::getEnv('_APP_REGION');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -174,7 +174,6 @@ class Certificates extends Action
|
|||
$logs = 'Certificate successfully generated.';
|
||||
$certificate->setAttribute('logs', \mb_strcut($logs, 0, 1000000));// Limit to 1MB
|
||||
|
||||
var_dump($certificate);
|
||||
// Give certificates to Traefik
|
||||
$this->applyCertificateFiles($folder, $domain->get(), $letsEncryptData);
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ use Utopia\Database\Query;
|
|||
use Utopia\Logger\Log;
|
||||
use Utopia\Platform\Action;
|
||||
use Utopia\Queue\Message;
|
||||
use Utopia\System\System;
|
||||
|
||||
class Databases extends Action
|
||||
{
|
||||
|
|
@ -67,7 +68,7 @@ class Databases extends Action
|
|||
$collection = new Document($payload['collection'] ?? []);
|
||||
$document = new Document($payload['document'] ?? []);
|
||||
$database = new Document($payload['database'] ?? []);
|
||||
$this->sourceRegion = $payload['sourceRegion'] ?? 'default';
|
||||
$this->sourceRegion = $payload['sourceRegion'] ?? null;
|
||||
|
||||
$log->addTag('projectId', $project->getId());
|
||||
$log->addTag('type', $type);
|
||||
|
|
@ -618,6 +619,7 @@ class Databases extends Action
|
|||
array $events,
|
||||
callable $realtimeConnection
|
||||
): void {
|
||||
var_dump('Send region='.$this->sourceRegion);
|
||||
$target = Realtime::fromPayload(
|
||||
// Pass first, most verbose event pattern
|
||||
event: $events[0],
|
||||
|
|
|
|||
Loading…
Reference in a new issue