Merge pull request #49 from kongfei605/fix_log_endpoints
fix building log endpoints without error judge
This commit is contained in:
commit
88263fdb62
|
@ -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("invalid endpoints", 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