Merge pull request #4271 from ArtfulCoder/logging_etcd

Updated etcd-pod-dir-fetch logging.
This commit is contained in:
Dawn Chen 2015-02-10 13:41:06 -08:00
commit c55921676c

View File

@ -61,6 +61,10 @@ func (s *sourceEtcd) run() {
boundPods := api.BoundPods{}
err := s.helper.ExtractObj(s.key, &boundPods, false)
if err != nil {
if tools.IsEtcdNotFound(err) {
glog.V(4).Infof("etcd failed to retrieve the value for the key %q. Error: %v", s.key, err)
return
}
glog.Errorf("etcd failed to retrieve the value for the key %q. Error: %v", s.key, err)
return
}