fix building log endpoints without error judge
This commit is contained in:
parent
b7d3925d53
commit
0d80ef5623
|
@ -154,6 +154,12 @@ func (a *Agent) startLogAgent() {
|
|||
}
|
||||
|
||||
endpoints, err := BuildEndpoints(intakeTrackType, AgentJSONIntakeProtocol, logsconfig.DefaultIntakeOrigin)
|
||||
if err != nil {
|
||||
message := fmt.Sprintf("Invalid endpoints: %v", err)
|
||||
status.AddGlobalError(invalidProcessingRules, message)
|
||||
log.Println("E!", errors.New(message))
|
||||
return
|
||||
}
|
||||
processingRules, err := GlobalProcessingRules()
|
||||
if err != nil {
|
||||
message := fmt.Sprintf("Invalid processing rules: %v", err)
|
||||
|
|
Loading…
Reference in New Issue