Page MenuHomePhorge

D4208.1775252590.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D4208.1775252590.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
@@ -150,14 +151,15 @@
$response = $client->request('GET', "ping");
if ($response->getStatusCode() != 200) {
$this->line("Backend not available: " . var_export($response, true));
- return false;
+ $success = false;
}
+ } catch (\Exception $exception) {
+ $this->line("Backend 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
Fri, Apr 3, 9:43 PM (19 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18826766
Default Alt Text
D4208.1775252590.diff (1 KB)

Event Timeline