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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: only run logdrain if necessary
Andras Bacsai2725a93bfdd6
diff --git a/app/Jobs/ServerCheckJob.php b/app/Jobs/ServerCheckJob.phpindex 6b90c976c0..3cdeb12bdf 100644--- a/app/Jobs/ServerCheckJob.php+++ b/app/Jobs/ServerCheckJob.php@@ -78,7 +78,6 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueuereturn 'No containers found.';}GetContainersStatus::run($this->server, $this->containers, $containerReplicates);- // $this->containerStatus();$this->checkLogDrainContainer();$this->checkSentinel();}@@ -163,7 +162,15 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueueInstallLogDrain::dispatch($this->server);}} else {- InstallLogDrain::dispatch($this->server);+ if ($this->server->settings->is_logdrain_newrelic_enabled) {+ InstallLogDrain::dispatch($this->server);+ } elseif ($this->server->settings->is_logdrain_highlight_enabled) {+ InstallLogDrain::dispatch($this->server);+ } elseif ($this->server->settings->is_logdrain_axiom_enabled) {+ InstallLogDrain::dispatch($this->server);+ } elseif ($this->server->settings->is_logdrain_custom_enabled) {+ InstallLogDrain::dispatch($this->server);+ }}}