From eb553fa96ce017d694a54f39fa48938381c6d6a1 Mon Sep 17 00:00:00 2001 From: shimon Date: Tue, 17 Sep 2024 21:09:16 +0300 Subject: [PATCH] debug --- src/Appwrite/Event/Database.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Appwrite/Event/Database.php b/src/Appwrite/Event/Database.php index b6eea1e748..9fe991a6dd 100644 --- a/src/Appwrite/Event/Database.php +++ b/src/Appwrite/Event/Database.php @@ -108,6 +108,10 @@ class Database extends Event */ public function trigger(): string|bool { + + var_dump('database='); + var_dump($this->getProject()->getAttribute('database')); + try { $dsn = new DSN($this->getProject()->getAttribute('database')); } catch (\InvalidArgumentException) { @@ -115,6 +119,9 @@ class Database extends Event $dsn = new DSN('mysql://' . $this->getProject()->getAttribute('database')); } + var_dump('$dsn->getHost()='); + var_dump($dsn->getHost()); + $this->setQueue($dsn->getHost()); $client = new Client($this->queue, $this->connection);