mirror of
https://github.com/alibaba/higress.git
synced 2026-03-09 19:20:51 +08:00
fix: Fix incorrect logging functions used in eureka registry integration (#563)
This commit is contained in:
@@ -69,11 +69,11 @@ func (p *Plan) watch(ch <-chan fargo.AppUpdate) {
|
||||
return
|
||||
case updateItem := <-ch:
|
||||
if updateItem.Err != nil {
|
||||
log.Error("get eureka application failed, error : %v", updateItem.Err)
|
||||
log.Errorf("get eureka application failed, error : %v", updateItem.Err)
|
||||
continue
|
||||
}
|
||||
if err := p.handler(updateItem.App); err != nil {
|
||||
log.Error("handle eureka application failed, error : %v", err)
|
||||
log.Errorf("handle eureka application failed, error : %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ func (w *watcher) Run() {
|
||||
case <-ticker.C:
|
||||
w.doFullRefresh()
|
||||
case <-w.stop:
|
||||
log.Info("eureka watcher(%v) is stopping ...", w.Name)
|
||||
log.Infof("eureka watcher(%v) is stopping ...", w.Name)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user