@@ -204,26 +204,26 @@ func (lbp *RancherLBProvider) GetPublicEndpoints(configName string) []string {
204204 return epStr
205205 }
206206 if lb == nil {
207- logrus .Errorf ( "Failed to find LB [%s]" , lbFmt )
207+ logrus .Infof ( " LB [%s] is not ready yet, skipping endpoint update " , lbFmt )
208208 return epStr
209209 }
210210
211211 epChannel := lbp .waitForLBPublicEndpoints (1 , lb )
212212 _ , ok := <- epChannel
213213 if ! ok {
214- logrus .Errorf ("Couldn't get publicEndpoints for LB [%s]" , lbFmt )
214+ logrus .Infof ("Couldn't get publicEndpoints for LB [%s], skipping endpoint update " , lbFmt )
215215 return epStr
216216 }
217217
218218 lb , err = lbp .reloadLBService (lb )
219219 if err != nil {
220- logrus .Errorf ("Failed to reload LB [%s]" , lbFmt )
220+ logrus .Infof ("Failed to reload LB [%s], skipping endpoint update " , lbFmt )
221221 return epStr
222222 }
223223
224224 eps := lb .PublicEndpoints
225225 if len (eps ) == 0 {
226- logrus .Errorf ("No public endpoints found for lb %s " , lbFmt )
226+ logrus .Infof ("No public endpoints found for LB [%s], skipping endpoint update " , lbFmt )
227227 return epStr
228228 }
229229
@@ -232,7 +232,7 @@ func (lbp *RancherLBProvider) GetPublicEndpoints(configName string) []string {
232232
233233 err = convertObject (epObj , & ep )
234234 if err != nil {
235- logrus .Errorf ("No public endpoints found for lb %v" , err )
235+ logrus .Errorf ("Faield to convert public endpoints for LB [%s], skipping endpoint update %v" , lbFmt , err )
236236 return epStr
237237 }
238238 epStr = append (epStr , ep .IPAddress )
0 commit comments