From 5a003aab9b7361c629e58f73c104ab3a4a29f184 Mon Sep 17 00:00:00 2001 From: kruskal <99559985+kruskall@users.noreply.github.com> Date: Thu, 25 Jul 2024 14:05:24 +0200 Subject: [PATCH] fix: do not close log processing channel if logs api is disabled the extension relies on 3 mechanisms to exit event processing: - agent flush signal - log processing done - event deadline timeout When the logs api/processing is disabled the log processing is always done and event processing will exit immediately. To fix this ignore log processing signal and only rely on agent flush or event deadline if log processing is disabled. --- app/run.go | 1 - 1 file changed, 1 deletion(-) diff --git a/app/run.go b/app/run.go index cc029590..2c4903c2 100644 --- a/app/run.go +++ b/app/run.go @@ -215,7 +215,6 @@ func (app *App) processEvent( }() } else { app.logger.Warn("Logs collection not started due to earlier subscription failure") - close(logProcessingDone) } // Calculate how long to wait for a runtimeDoneSignal or AgentDoneSignal signal