fix(agent): Ignore startup-errors in test mode (#15488)

This commit is contained in:
Sven Rebhan 2024-06-12 11:16:10 -04:00 committed by GitHub
parent 99b840c253
commit caa0cf3a80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -458,6 +458,7 @@ func (a *Agent) testStartInputs(
if err := input.Start(acc); err != nil { if err := input.Start(acc); err != nil {
log.Printf("E! [agent] Starting input %s: %v", input.LogName(), err) log.Printf("E! [agent] Starting input %s: %v", input.LogName(), err)
continue
} }
unit.inputs = append(unit.inputs, input) unit.inputs = append(unit.inputs, input)