Merge pull request #4271 from ArtfulCoder/logging_etcd

Updated etcd-pod-dir-fetch logging.
pull/6/head
Dawn Chen 2015-02-10 13:41:06 -08:00
commit c55921676c
1 changed files with 4 additions and 0 deletions

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
}