diff --git a/app/controllers/general.php b/app/controllers/general.php index e56357869d..fd7599595a 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -403,11 +403,6 @@ App::error() $version = App::getEnv('_APP_VERSION', 'UNKNOWN'); $route = $utopia->match($request); - /** Delegate PDO exceptions to the global handler so the database connection can be returned to the pool */ - if ($error instanceof PDOException) { - throw $error; - } - if ($logger) { if ($error->getCode() >= 500 || $error->getCode() === 0) { try { diff --git a/app/init.php b/app/init.php index 0f1ef4b4ec..24083c801f 100644 --- a/app/init.php +++ b/app/init.php @@ -861,7 +861,7 @@ $register->set('pools', function () { return $adapter; }); -var_dump($pool->channel->length()); + $group->add($pool); } @@ -877,15 +877,6 @@ var_dump($pool->channel->length()); return $group; }); -$register->set('test', function () { - var_dump('[[init test!!]]'); - $test = new Channel(5); - $test->push(1); - $test->push(1); - $test->push(1); - $test->push(1); - return $test; -}); $register->set('influxdb', function () { // Register DB connection $host = App::getEnv('_APP_INFLUXDB_HOST', '');