Fix log drain issue in advanced and service application

This commit is contained in:
Andras Bacsai committed 2023-11-22 14:21:03 +01:00
1 parent 5e27b88bef
commit 25a0489f7f
2 files changed
+7 -7

No files matched your search

@@ -23,7 +23,7 @@ class Advanced extends Component
];
public function instantSave()
{
if ($this->application->settings->is_log_drain_enabled) {
if ($this->application->isLogDrainEnabled()) {
if (!$this->application->destination->server->isLogDrainEnabled()) {
$this->application->settings->is_log_drain_enabled = false;
$this->emit('error', 'Log drain is not enabled on this server.');