Page MenuHomePhorge

D4208.1775267259.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D4208.1775267259.diff

diff --git a/src/app/Console/Commands/Status/Health.php b/src/app/Console/Commands/Status/Health.php
--- a/src/app/Console/Commands/Status/Health.php
+++ b/src/app/Console/Commands/Status/Health.php
@@ -121,11 +121,12 @@
private function checkMeet()
{
- try {
- $urls = \config('meet.api_urls');
- foreach ($urls as $url) {
- $this->line("Checking $url");
+ $urls = \config('meet.api_urls');
+ $success = true;
+ foreach ($urls as $url) {
+ $this->line("Checking $url");
+ try {
$client = new \GuzzleHttp\Client(
[
'http_errors' => false, // No exceptions from Guzzle
@@ -149,15 +150,16 @@
$response = $client->request('GET', "ping");
if ($response->getStatusCode() != 200) {
- $this->line("Backend not available: " . var_export($response, true));
- return false;
+ $this->line("Backend {$url} not available. Status: {$response->getStatusCode()} Reason: {$response->getReasonPhrase()}");
+ $success = false;
}
+ } catch (\Exception $exception) {
+ $this->line("Backend {$url} not available:");
+ $this->line($exception);
+ $success = false;
}
- return true;
- } catch (\Exception $exception) {
- $this->line($exception);
- return false;
}
+ return $success;
}
/**

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 1:47 AM (14 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18824303
Default Alt Text
D4208.1775267259.diff (1 KB)

Event Timeline