Add some more logging to service updates.

This commit is contained in:
Brendan Burns 2014-07-18 09:29:17 -07:00
parent 7d0b8e0c1c
commit fa69781b41

View File

@ -79,6 +79,10 @@ func (e *EndpointController) SyncServiceEndpoints() error {
glog.Errorf("Failed to find port for service: %v, %v", service, err)
continue
}
if len(pod.CurrentState.PodIP) == 0 {
glog.Errorf("Failed to find an IP for pod: %v", pod)
continue
}
endpoints[ix] = net.JoinHostPort(pod.CurrentState.PodIP, strconv.Itoa(port))
}
err = e.serviceRegistry.UpdateEndpoints(api.Endpoints{