Log configuration errors from providers and keeps listening
This commit is contained in:
parent
d63636243c
commit
e42ddfc3d6
1 changed files with 6 additions and 2 deletions
|
@ -233,10 +233,14 @@ func (s *Server) listenProviders(stop chan bool) {
|
||||||
case <-stop:
|
case <-stop:
|
||||||
return
|
return
|
||||||
case configMsg, ok := <-s.configurationChan:
|
case configMsg, ok := <-s.configurationChan:
|
||||||
if !ok || configMsg.Configuration == nil {
|
if !ok {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
s.preLoadConfiguration(configMsg)
|
if configMsg.Configuration != nil {
|
||||||
|
s.preLoadConfiguration(configMsg)
|
||||||
|
} else {
|
||||||
|
log.Debugf("Received nil configuration from provider %q, skipping.", configMsg.ProviderName)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue