Remove unnecessary echo and add alive message
This commit is contained in:
parent
0459b3a115
commit
6d49678842
1 changed files with 2 additions and 1 deletions
|
|
@ -35,14 +35,15 @@ public function handle()
|
||||||
}
|
}
|
||||||
private function alive()
|
private function alive()
|
||||||
{
|
{
|
||||||
echo "Sending alive request.\n";
|
|
||||||
$id = config('app.id');
|
$id = config('app.id');
|
||||||
$settings = InstanceSettings::get();
|
$settings = InstanceSettings::get();
|
||||||
$do_not_track = data_get($settings, 'do_not_track');
|
$do_not_track = data_get($settings, 'do_not_track');
|
||||||
if ($do_not_track == true) {
|
if ($do_not_track == true) {
|
||||||
|
echo "Skipping alive as do_not_track is enabled\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
echo "I am alive!\n";
|
||||||
Http::get("https://get.coollabs.io/coolify/v4/alive?appId=$id");
|
Http::get("https://get.coollabs.io/coolify/v4/alive?appId=$id");
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
echo "Error in alive: {$e->getMessage()}\n";
|
echo "Error in alive: {$e->getMessage()}\n";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue