forked from Ivasoft/traefik
Log configuration errors from providers and keeps listening
This commit is contained in:
committed by
Traefiker Bot
parent
4a5f5440d7
commit
0840fd0f96
@@ -356,10 +356,14 @@ func (s *Server) listenProviders(stop chan bool) {
|
||||
case <-stop:
|
||||
return
|
||||
case configMsg, ok := <-s.configurationChan:
|
||||
if !ok || configMsg.Configuration == nil {
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
s.preLoadConfiguration(configMsg)
|
||||
if configMsg.Configuration != nil {
|
||||
s.preLoadConfiguration(configMsg)
|
||||
} else {
|
||||
log.Debugf("Received nil configuration from provider %q, skipping.", configMsg.ProviderName)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user