Updated logging. If etcd-pod-dir-fetch fails because dir was absent, an info message is logged. 2) For all other reasons, the regular error message is logged.

This commit is contained in:
Abhishek Shah
2015-02-09 18:03:58 -08:00
parent e27d534b87
commit f136886dde

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
}