refactor: Remove unnecessary logging statements from UpdateCoolify
This commit is contained in:
parent
03aa440424
commit
e3e938c8eb
@ -5,7 +5,6 @@
|
||||
use Lorisleiva\Actions\Concerns\AsAction;
|
||||
use App\Models\InstanceSettings;
|
||||
use App\Models\Server;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class UpdateCoolify
|
||||
{
|
||||
@ -28,19 +27,15 @@ public function handle($manual_update = false)
|
||||
$this->currentVersion = config('version');
|
||||
if (!$manual_update) {
|
||||
if (!$settings->is_auto_update_enabled) {
|
||||
Log::debug('Auto update is disabled');
|
||||
return;
|
||||
}
|
||||
if ($this->latestVersion === $this->currentVersion) {
|
||||
Log::debug('Already on latest version');
|
||||
return;
|
||||
}
|
||||
if (version_compare($this->latestVersion, $this->currentVersion, '<')) {
|
||||
Log::debug('Latest version is lower than current version?!');
|
||||
return;
|
||||
}
|
||||
}
|
||||
Log::info("Updating from {$this->currentVersion} -> {$this->latestVersion}");
|
||||
$this->update();
|
||||
} catch (\Throwable $e) {
|
||||
ray('InstanceAutoUpdateJob failed');
|
||||
|
Loading…
Reference in New Issue
Block a user