router/registry: use warn error level (#1826)

This commit is contained in:
ben-toogood 2020-07-13 15:27:14 +01:00 committed by GitHub
parent 8fe4f1f2c3
commit a4252ba69c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
} }