mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
No need to delegate DB errors
This commit is contained in:
@@ -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 {
|
||||
|
||||
+1
-10
@@ -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', '');
|
||||
|
||||
Reference in New Issue
Block a user