From 6e7e4250e6f0cd5bc4a2b6647fe7d43215a617d8 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 24 Apr 2024 14:33:20 +0200 Subject: [PATCH] Fix issue with logging environment variables in ApplicationDeploymentJob.php --- app/Jobs/ApplicationDeploymentJob.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php index 52afdd47e..b7e8e67cf 100644 --- a/app/Jobs/ApplicationDeploymentJob.php +++ b/app/Jobs/ApplicationDeploymentJob.php @@ -24,6 +24,7 @@ use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Collection; +use Illuminate\Support\Facades\Log; use Illuminate\Support\Sleep; use Illuminate\Support\Str; use RuntimeException; @@ -743,6 +744,7 @@ private function save_environment_variables() $envs = $envs->sort(function ($a, $b) { return strpos($a, '$') === false ? -1 : 1; }); + Log::info("message", $envs->implode("\n")); } else { $this->env_filename = ".env"; foreach ($this->application->environment_variables as $env) {