Skip to content

Commit f2f7de6

Browse files
authored
fix: do not close log processing channel if logs api is disabled (#512)
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.
1 parent d4726cd commit f2f7de6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

app/run.go

-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ func (app *App) processEvent(
215215
}()
216216
} else {
217217
app.logger.Warn("Logs collection not started due to earlier subscription failure")
218-
close(logProcessingDone)
219218
}
220219

221220
// Calculate how long to wait for a runtimeDoneSignal or AgentDoneSignal signal

0 commit comments

Comments
 (0)