refactor: Simplify log drain installation in ServerCheckJob

This commit is contained in:
Andras Bacsai 2024-08-05 16:45:30 +02:00
parent 2725a93bfd
commit ddb4b4d215

View file

@ -162,15 +162,7 @@ private function checkLogDrainContainer()
InstallLogDrain::dispatch($this->server);
}
} else {
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);
}
InstallLogDrain::dispatch($this->server);
}
}