mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
tmp debug health db api
This commit is contained in:
parent
cf6605746d
commit
5b2fdf7e5b
1 changed files with 14 additions and 2 deletions
|
|
@ -124,9 +124,21 @@ App::get('/v1/health/db')
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
$failures[] = $database;
|
$failures[] = $database;
|
||||||
|
// Add failure to output instead of throwing
|
||||||
|
$output[] = new Document([
|
||||||
|
'name' => $key . " ($database)",
|
||||||
|
'status' => 'fail',
|
||||||
|
'ping' => 0
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
} catch (\Throwable) {
|
} catch (\Throwable $e) {
|
||||||
$failures[] = $database;
|
$failures[] = $database;
|
||||||
|
// Add failure to output instead of throwing
|
||||||
|
$output[] = new Document([
|
||||||
|
'name' => $key . " ($database)",
|
||||||
|
'status' => 'fail',
|
||||||
|
'ping' => 0
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue