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 {
w, err = r.options.Registry.Watch()
if err != nil {
if logger.V(logger.ErrorLevel, logger.DefaultLogger) {
logger.Errorf("failed creating registry watcher: %v", err)
if logger.V(logger.WarnLevel, logger.DefaultLogger) {
logger.Warnf("failed creating registry watcher: %v", err)
}
time.Sleep(time.Second)
continue
@ -524,8 +524,8 @@ func (r *router) start() error {
}
if err := r.watchRegistry(w); err != nil {
if logger.V(logger.ErrorLevel, logger.DefaultLogger) {
logger.Errorf("Error watching the registry: %v", err)
if logger.V(logger.WarnLevel, logger.DefaultLogger) {
logger.Warnf("Error watching the registry: %v", err)
}
time.Sleep(time.Second)
}