Skip to content

Commit

Permalink
Update manager.go
Browse files Browse the repository at this point in the history
Signed-off-by: banghao <[email protected]>
  • Loading branch information
zxwsclcmxbh authored Oct 30, 2023
1 parent 659b0f9 commit fd48587
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions event/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ func (m *manager) UpdateEndpoints(endpoints ...*config.Endpoint) {
manager: m,
ctx: m.ctx,
}
if len(m.config.EventLogServers) != 0 {
h.server = m.config.EventLogServers[0]
}
if len(m.config.EventLogServers) != 0 && m.config.EventLogServers[0] != "127.0.0.1:6366" {
h.server = m.config.EventLogServers[0]
}
m.handles[end.URL] = h
logrus.Infof("Add event server endpoint,%s", end.URL)
go h.HandleLog()
Expand Down

0 comments on commit fd48587

Please sign in to comment.