fix: only run logdrain if necessary
This commit is contained in:
parent
5755965b4f
commit
2725a93bfd
1 changed files with 9 additions and 2 deletions
|
|
@ -78,7 +78,6 @@ public function handle()
|
|||
return 'No containers found.';
|
||||
}
|
||||
GetContainersStatus::run($this->server, $this->containers, $containerReplicates);
|
||||
// $this->containerStatus();
|
||||
$this->checkLogDrainContainer();
|
||||
$this->checkSentinel();
|
||||
}
|
||||
|
|
@ -163,7 +162,15 @@ private function checkLogDrainContainer()
|
|||
InstallLogDrain::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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue