Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117786341
D4208.1775252590.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D4208.1775252590.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D4208: ./artisan status:health: check every backend instead of just one
Attached
Detach File
Event Timeline