Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

remove Logs::

Andras Bacsai98d057a2ac3e
diff --git a/app/Actions/Fortify/CreateNewUser.php b/app/Actions/Fortify/CreateNewUser.php
index 6ea5241470..71dbcf28f9 100644
--- a/app/Actions/Fortify/CreateNewUser.php
+++ b/app/Actions/Fortify/CreateNewUser.php
@@ -25,7 +25,6 @@ class CreateNewUser implements CreatesNewUsers
{
$settings = InstanceSettings::get();
if (!$settings->is_registration_enabled) {
- Log::info('Registration is disabled');
abort(403);
}
Validator::make($input, [
diff --git a/app/Http/Livewire/Project/New/GithubPrivateRepository.php b/app/Http/Livewire/Project/New/GithubPrivateRepository.php
index d092670a3d..535227ac9b 100644
--- a/app/Http/Livewire/Project/New/GithubPrivateRepository.php
+++ b/app/Http/Livewire/Project/New/GithubPrivateRepository.php
@@ -66,7 +66,7 @@ class GithubPrivateRepository extends Component
}
protected function loadBranchByPage()
{
- Log::info('Loading page ' . $this->page);
+ ray('Loading page ' . $this->page);
$response = Http::withToken($this->token)->get("{$this->github_app->api_url}/repos/{$this->selected_repository_owner}/{$this->selected_repository_repo}/branches?per_page=100&page={$this->page}");
$json = $response->json();
if ($response->status() !== 200) {
diff --git a/app/Jobs/ApplicationContainerStatusJob.php b/app/Jobs/ApplicationContainerStatusJob.php
index 004f1f5a09..c8d87028cd 100644
--- a/app/Jobs/ApplicationContainerStatusJob.php
+++ b/app/Jobs/ApplicationContainerStatusJob.php
@@ -43,7 +43,7 @@ class ApplicationContainerStatusJob implements ShouldQueue, ShouldBeUnique
$this->application->save();
}
} catch (\Exception $e) {
- Log::error($e->getMessage());
+ ray($e->getMessage());
}
}
}
diff --git a/app/Jobs/DockerCleanupJob.php b/app/Jobs/DockerCleanupJob.php
index 96b2d668f8..3eb1b939b8 100644
--- a/app/Jobs/DockerCleanupJob.php
+++ b/app/Jobs/DockerCleanupJob.php
@@ -48,13 +48,14 @@ class DockerCleanupJob implements ShouldQueue
}
}
} catch (\Exception $e) {
- Log::error($e->getMessage());
+ ray($e->getMessage());
}
}
-
- private function get_disk_usage(Server $server, string $docker_root_filesystem) {
+
+ private function get_disk_usage(Server $server, string $docker_root_filesystem)
+ {
$disk_usage = json_decode(instant_remote_process(['df -hP | awk \'BEGIN {printf"{\"disks\":["}{if($1=="Filesystem")next;if(a)printf",";printf"{\"mount\":\""$6"\",\"size\":\""$2"\",\"used\":\""$3"\",\"avail\":\""$4"\",\"use%\":\""$5"\"}";a++;}END{print"]}";}\''], $server), true);
$mount_point = collect(data_get($disk_usage, 'disks'))->where('mount', $docker_root_filesystem)->first();
return Str::of(data_get($mount_point, 'use%'))->trim()->replace('%', '')->value();
}
-}
\ No newline at end of file
+}