From bf475e538c545493ee71827e3aa6016c36c3b3d9 Mon Sep 17 00:00:00 2001 From: Vahor Date: Fri, 30 Aug 2024 17:29:25 +0200 Subject: [PATCH] don't check logDrain installation if it's not enabled --- app/Jobs/ServerCheckJob.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Jobs/ServerCheckJob.php b/app/Jobs/ServerCheckJob.php index 703b199c5..3dbd9d3a7 100644 --- a/app/Jobs/ServerCheckJob.php +++ b/app/Jobs/ServerCheckJob.php @@ -124,6 +124,9 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue private function checkLogDrainContainer() { + if(! $this->server->isLogDrainEnabled()) { + return; + } $foundLogDrainContainer = $this->containers->filter(function ($value, $key) { return data_get($value, 'Name') === '/coolify-log-drain'; })->first();