router/registry: use warn error level (#1826)
This commit is contained in:
parent
8fe4f1f2c3
commit
a4252ba69c
@ -515,8 +515,8 @@ func (r *router) start() error {
|
|||||||
if w == nil {
|
if w == nil {
|
||||||
w, err = r.options.Registry.Watch()
|
w, err = r.options.Registry.Watch()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if logger.V(logger.ErrorLevel, logger.DefaultLogger) {
|
if logger.V(logger.WarnLevel, logger.DefaultLogger) {
|
||||||
logger.Errorf("failed creating registry watcher: %v", err)
|
logger.Warnf("failed creating registry watcher: %v", err)
|
||||||
}
|
}
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
continue
|
continue
|
||||||
@ -524,8 +524,8 @@ func (r *router) start() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := r.watchRegistry(w); err != nil {
|
if err := r.watchRegistry(w); err != nil {
|
||||||
if logger.V(logger.ErrorLevel, logger.DefaultLogger) {
|
if logger.V(logger.WarnLevel, logger.DefaultLogger) {
|
||||||
logger.Errorf("Error watching the registry: %v", err)
|
logger.Warnf("Error watching the registry: %v", err)
|
||||||
}
|
}
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user