forked from Ivasoft/traefik
Log configuration errors from providers and keeps listening
This commit is contained in:
committed by
Traefiker Bot
parent
d63636243c
commit
e42ddfc3d6
@@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user