fix building log endpoints without error judge

This commit is contained in:
kongfei 2022-06-24 18:20:59 +08:00
parent 0d80ef5623
commit 190d067401
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ 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)
status.AddGlobalError("invalid endpoints", message)
log.Println("E!", errors.New(message))
return
}